
                    <svg xmlns="http://www.w3.org/2000/svg" style="display: none;">
                        <path stroke-linecap="round" d="M5,0 0,2.5 5,5z" id="raphael-marker-block" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"></path>
                    </svg>
                    <blockquote> 
 <p><strong>这篇文章是高级题库答案纯享版，只有需要选择的选项。如果需要查看所有选项，可以点击下方链接跳转。以考代学，还是推荐点击下方链接，查看完整的题库，边看边学习鸿蒙应用开发。此题库已更新完毕，笔者将不继续更新。7月28日，笔者连续考3次后，均通过，所以答案应该没什么大问题。祝各位读者好运(๑¯ω¯๑)。</strong></p> 
</blockquote> 
<hr> 
<h3><a name="t0"></a><a id="_httpsblogcsdnnetGusha_articledetails140295266spm1001201430015502_2"></a>高级认证完整题库： <a href="https://blog.csdn.net/Gusha_/article/details/140295266?spm=1001.2014.3001.5502" target="_blank">高级认证完整题库</a></h3> 
<hr> 
<h4><a name="t1"></a><a id="httpspanbaiducoms153tDk4dVv_MmLEyzOqW9hQpwdxkgr_4"></a>题库文档链接（自取）：https://pan.baidu.com/s/153tDk4dVv_MmLEyzOqW9hQ?pwd=xkgr</h4> 
<hr> 
<h2><a name="t2"></a><a id="_8"></a>注：题目是乱序，每次考试，选项的顺序都不同</h2> 
<h3><a name="t3"></a><a id="___40___40_10"></a>选择题 40道 40分</h3> 
<hr> 
<p>1、以下关于Taskpool和Worker的描述正确的是</p> 
<p>​ <code style="user-select: auto;">B、TaskPool支持任务延时执行</code></p> 
<hr> 
<p>2、以下哪个<a href="https://so.csdn.net/so/search?q=%E8%A3%85%E9%A5%B0%E5%99%A8&amp;spm=1001.2101.3001.7020" target="_blank" class="hl hl-1" data-report-click="{&quot;spm&quot;:&quot;1001.2101.3001.7020&quot;,&quot;dest&quot;:&quot;https://so.csdn.net/so/search?q=%E8%A3%85%E9%A5%B0%E5%99%A8&amp;spm=1001.2101.3001.7020&quot;,&quot;extra&quot;:&quot;{\&quot;searchword\&quot;:\&quot;装饰器\&quot;}&quot;}" data-tit="装饰器" data-pretit="装饰器">装饰器</a>用来表示并发共享对象。</p> 
<p>​ <code style="user-select: auto;">B、@Sendable</code></p> 
<hr> 
<p><strong>3、ArkTS支持以下哪些函数（不确定）</strong></p> 
<p>​ <code style="user-select: auto;">A、Object.keys();</code></p> 
<hr> 
<p>4、以下哪些赋值语句在ArkTS中是合法。</p> 
<pre data-index="0" class="set-code-show prettyprint" style="user-select: auto;"><code class="prism language-typescript has-numbering" onclick="mdcp.copyCode(event)" style="position: unset; user-select: auto;"><span class="token keyword">let</span> value2<span class="token operator">:</span> <span class="token builtin">string</span> <span class="token operator">|</span> <span class="token keyword">null</span> <span class="token operator">=</span> <span class="token keyword">null</span><span class="token punctuation">;</span>
<div class="hljs-button {2} add_def" data-title="复制"></div></code><ul class="pre-numbering" style="opacity: 0.999931;"><li style="color: rgb(153, 153, 153);">1</li></ul><button class="btn-code-notes mdeditor" data-report-click="{&quot;spm&quot;:&quot;3001.10436&quot;,&quot;extra&quot;:{&quot;index&quot;:0,&quot;runIdx&quot;:-1}}">代码解读</button></pre> 
<p>​ <code style="user-select: auto;">B、value2</code></p> 
<hr> 
<p><strong>5、ArkTS支持以下哪个函数。（不确定）</strong></p> 
<p>​ <code style="user-select: auto;">A、Object.values();</code></p> 
<hr> 
<p>6、下面哪种转场效果在入场动画时，表现为从透明度为0、相对于<span class="edu-hl hl hl-1" data-report-view="{&quot;spm&quot;:&quot;1001.2101.3001.7020&quot;,&quot;extra&quot;:&quot;{\&quot;word\&quot;:\&quot;组件\&quot;}&quot;}" data-report-click="{&quot;spm&quot;:&quot;1001.2101.3001.7020&quot;,&quot;extra&quot;:&quot;{\&quot;word\&quot;:\&quot;组件\&quot;}&quot;}" data-tit="组件" data-pretit="组件">组件</span>正常显示位置×方向平移100vp的状态，到默认的透明度为1、相对于组件不平移的状态，且透明度动画和平移动画的动画时长均为2000ms</p> 
<p>​ <code style="user-select: auto;">B、TransitionEffect.OPACITY.animation({duration:2000}).combine(TransitionEffect.translate({x:100}))</code></p> 
<p><strong>注：</strong><code style="user-select: auto;">放到代码块里，方便查看</code></p> 
<pre data-index="1" class="set-code-show prettyprint" style="user-select: auto;"><code class="prism language-typescript has-numbering" onclick="mdcp.copyCode(event)" style="position: unset; user-select: auto;"><span class="token comment">// 答案	=========================================</span>
TransitionEffect<span class="token punctuation">.</span><span class="token constant">OPACITY</span>
    <span class="token punctuation">.</span><span class="token function">animation</span><span class="token punctuation">(</span><span class="token punctuation">{<!-- --></span>duration<span class="token operator">:</span><span class="token number">2000</span><span class="token punctuation">}</span><span class="token punctuation">)</span>
    <span class="token punctuation">.</span><span class="token function">combine</span><span class="token punctuation">(</span>TransitionEffect<span class="token punctuation">.</span><span class="token function">translate</span><span class="token punctuation">(</span><span class="token punctuation">{<!-- --></span>x<span class="token operator">:</span><span class="token number">100</span><span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token punctuation">)</span>
<div class="hljs-button {2} add_def" data-title="复制"></div></code><ul class="pre-numbering" style="opacity: 0.999931;"><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li><li style="color: rgb(153, 153, 153);">3</li><li style="color: rgb(153, 153, 153);">4</li></ul><button class="btn-code-notes mdeditor" data-report-click="{&quot;spm&quot;:&quot;3001.10436&quot;,&quot;extra&quot;:{&quot;index&quot;:1,&quot;runIdx&quot;:-1}}">代码解读</button></pre> 
<hr> 
<p><strong>7、现有一个宽高分别为200px的XComponent组件，其绑定了一个XComponentController(xcController)，依次进行如下操作:</strong></p> 
<p>​ <code style="user-select: auto;">D、{ offsetX: 75, offsetY: -100, surfaceWidth: 150, surfaceHeight: 500 }</code></p> 
<p><strong>不确定</strong></p> 
<hr> 
<p>8、根据上面代码，以下解释正确的是</p> 
<p>​ <code style="user-select: auto;">D、在自定义组件Page的build方法里改变状态变量是非法操作，可能导致未定义的异常UI行为。</code></p> 
<hr> 
<p><strong>9、已知下列代码PageOne页面为navigation中的某一子页面，依次点击PageOne页面中toPageTwo按钮，PageTwo页面中toPageOne按钮，此时点击get按钮获取全部名为name的NavDestination页面的位置索引为（不确定）</strong></p> 
<p>​ <code style="user-select: auto;">C：[0,2]</code></p> 
<hr> 
<p>10、以下示例代码中可以进行动画的属性有哪些？</p> 
<p>​ <code style="user-select: auto;">D、1、2</code></p> 
<hr> 
<p>11、依次点击A、B、C、D四个按钮，其中不会触发UI刷新的是：</p> 
<pre data-index="2" class="set-code-show prettyprint" style="user-select: auto;"><code class="prism language-typescript has-numbering" onclick="mdcp.copyCode(event)" style="position: unset; user-select: auto;">      <span class="token function">Button</span><span class="token punctuation">(</span><span class="token string">"C"</span><span class="token punctuation">)</span>
        <span class="token punctuation">.</span><span class="token function">onClick</span><span class="token punctuation">(</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token operator">=&gt;</span> <span class="token punctuation">{<!-- --></span>
          <span class="token keyword">this</span><span class="token punctuation">.</span>nameList<span class="token punctuation">[</span><span class="token number">0</span><span class="token punctuation">]</span><span class="token punctuation">.</span>name <span class="token operator">=</span> <span class="token string">"Jim"</span>
        <span class="token punctuation">}</span><span class="token punctuation">)</span>
<div class="hljs-button {2} add_def" data-title="复制"></div></code><ul class="pre-numbering" style="opacity: 0.999931;"><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li><li style="color: rgb(153, 153, 153);">3</li><li style="color: rgb(153, 153, 153);">4</li></ul><button class="btn-code-notes mdeditor" data-report-click="{&quot;spm&quot;:&quot;3001.10436&quot;,&quot;extra&quot;:{&quot;index&quot;:2,&quot;runIdx&quot;:-1}}">代码解读</button></pre> 
<hr> 
<p><strong>12、从桌面冷启动如下应用，点击Change按钮5次，整个过程中，代码中的2条log依次出现的次数，最初和最后画面上显示的【num = ?】的数字是（不确定）</strong></p> 
<p>​ <code style="user-select: auto;">D、2,4,1,2</code></p> 
<hr> 
<p>13、使用promptAction.showToast如何设置显示在其他应用之上？</p> 
<p>​ <code style="user-select: auto;">C、ToastShowMode.TOP_MOAST</code></p> 
<hr> 
<p>14、在使用DevEco Studio的Profiler进行HarmonyOS应用性能优化的流程中，以下哪个步骤最恰当地描述了开发者利用Profiler工具进行性能问题识别、定位、优化及验证的完整过程</p> 
<p>​ <code style="user-select: auto;">C、利用"Realtime Monitor"初步识别性能瓶颈，创建深度分析任务定位根因，根据分析结果优化代码，再用"Realtime Monitor"验证优化效果</code></p> 
<hr> 
<p>15、DevEco Studio提供HarmonyOS应用/服务的UI预览界面与源代码文件间的双向预览功能，支持ets文件与预览器界面的双向预览。关于双向预览，下列选项说法错误的是？</p> 
<p>​ <code style="user-select: auto;">B、双向预览不支持通过组件的属性面板实时修改属性或样式。</code></p> 
<hr> 
<p><strong>16、项目中包含多个模块和数千行代码。随着开发的深入，项目中的ArkTS源代码文件逐渐积累了大量import语句，其中不乏未使用的import以及不规范的排序情况，关于DevEco Studio的编辑器的"Optimize Imports"，以下说法正确的是（不确定）</strong></p> 
<p>​ <code style="user-select: auto;">D、可以在菜单栏中依次点击"Code"&gt;"Reformat Code"来达到优化import的目的，因为"Optimize Imports"功能已整合进"Reformat Code"中。</code></p> 
<hr> 
<p>17、在使用DevEco Studio的Profiler进行HarmonyOS应用或服务<span class="edu-hl hl hl-1" data-report-view="{&quot;spm&quot;:&quot;1001.2101.3001.7020&quot;,&quot;extra&quot;:&quot;{\&quot;word\&quot;:\&quot;内存管理\&quot;}&quot;}" data-report-click="{&quot;spm&quot;:&quot;1001.2101.3001.7020&quot;,&quot;extra&quot;:&quot;{\&quot;word\&quot;:\&quot;内存管理\&quot;}&quot;}" data-tit="内存管理" data-pretit="内存管理">内存管理</span>优化时，以下哪个描述最准确地概述了"Allocation Insight"功能在识别和解决内存问题中的作用</p> 
<p>​ <code style="user-select: auto;">C、Allocation Insight通过分析应用服务运行时的内存分配及使用情况，辅助定位内存泄漏、内存抖动和溢出问题，支持优化内存使用</code></p> 
<hr> 
<p><strong>18、项目需要同时进行应用和元服务的开发，并针对当前项目工程中的代码可以分别构建出应用和元服务的包，如何在DevEco Studio中设置不同的构建配置，达成这个目的（不确定）</strong></p> 
<p>​ <code style="user-select: auto;">A、 在工程级别build-profile.json5定义两个product，将两个product的bundleType分别设置成app和atomicService</code></p> 
<hr> 
<p>19、HarmonyOS应用开发团队正着手优化一款面向全球市场的在线教育应用，该应用在特定课程直播环节出现了性能波动和响应延迟的问题，严重影响用户体验。打算利用DevEco Profiler来进行性能优化。DevEco Profiler其设计核心和主要优势是什么</p> 
<p>​ <code style="user-select: auto;">C、DevEco Profiler依据Top-Down设计理念，通过高度整合的数据展示范式，提供从宏观到微观的性能数据分析，加速开发者定位和解决问题的过程</code></p> 
<hr> 
<p>20、使用DevEco Studio进行复杂的跨设备功能开发与调试工作，期间频繁依赖本地模拟器来模拟多样化的设备环境。在这样的背景下，以下关于DevEco Studio本地模拟器所支持的规格与功能，哪一项描述是准确的</p> 
<p>​ <code style="user-select: auto;">C、本地模拟器上运行的应用无需进行签名，简化了调试过程。</code></p> 
<hr> 
<p>21、在一个包含多个模块（如entry、feature、har、hsp等）的大型HarmonyOS应用项目中，如果要对某个静态共享模块构建出静态构建包产物，如何通过DevEco Studio进行构建</p> 
<p>​ <code style="user-select: auto;">C、选中har模块，点击build菜单栏make module 'har'</code></p> 
<hr> 
<p>22、want参数的entities匹配规则错误的是</p> 
<p>​ <code style="user-select: auto;">D、调用方传入的want参数的entities为空，待匹配应用组件的skills配置中的entities不为空，则entities匹配失败。</code></p> 
<hr> 
<p>23、HAR（Harmony Archive）是HarmonyOS提供的共享包，以下关于HAR的描述错误的是</p> 
<p>​ <code style="user-select: auto;">C、HAR不支持使用page页面。</code></p> 
<hr> 
<p>24、应用开发中使用的各类资源文件，需要放入特定子目录中存储管理，以下关于资源说法错误的是</p> 
<p>​ <code style="user-select: auto;">B、rawfile目录，支持创建多层子目录，子目录名称可以自定义，文件夹内可以自由放置各类资源文件。目录中的资源文件会被编译成二进制文件，并赋予资源文件ID。</code></p> 
<hr> 
<p>25、应用程序开发调试过程中，经常需要安装新应用进行调测，下面安装应用操作错误的是</p> 
<p>​ <code style="user-select: auto;">D、hdc install -p ohosapp.hap</code></p> 
<hr> 
<p><strong>26、一个应用的一个UIAblity，其exported字段配置为false，以下哪个场景可以拉起这个UIAbility。（不确定）</strong></p> 
<p>​ <code style="user-select: auto;">C、caller应用在后台，申请了长时任务，有START_INVISIBLE_ABILITY权限；</code></p> 
<hr> 
<p><strong>27、一个应用有2个UIAbility组件，其module.json中abilities标签的配置如下方代码。（不确定）</strong></p> 
<p><strong>在手机设备上，执行如下操作后：</strong></p> 
<p><strong>1.启动UIAbility1，然后back键返回销毁UIAbility1；</strong></p> 
<p><strong>2.启动UIAbility2，然后back键返回销毁UIAbility2；</strong></p> 
<p><strong>3.启动UIAbility2，然后back键返回销毁UIAbility2；</strong></p> 
<p><strong>进入多任务列表，能看看到该应用的几个任务视图：</strong></p> 
<p>​ <code style="user-select: auto;">D、3个</code></p> 
<hr> 
<p><strong>28、某个应用开发了一个UIAbilityA，其启动模式是specified，并且对应的AbilityStage的实现如下：（不确定）</strong></p> 
<p>​ <code style="user-select: auto;">C、3个</code></p> 
<hr> 
<p>29、通过aa工具拉起com.example.test的EntryAbility，并传参给EntryAbility，具体参数是number类型的[key1, 1] [key2, 2] 和string类型的[key3, testString] [key4, ’ ']，那边下面那个aa命令是正确的：</p> 
<p>​ <code style="user-select: auto;">D、aa start -b com.example.test -a EntryAbility --pi key1 1 --pi key2 2 --ps key3 testString --psn key4</code></p> 
<hr> 
<p>30、应用发生崩溃，（）接口可以获取到崩溃时调用栈</p> 
<p>​ <code style="user-select: auto;">A、hiAppEvent</code></p> 
<hr> 
<p>31、hiAppEvent提供的Watcher接口，（）属性不配置，会导致编译报错，产生"ArkTS Compiler Error".</p> 
<p>​ <code style="user-select: auto;">B、name</code></p> 
<hr> 
<p>32、为了提高性能，所以List组件支持懒加载，可以通过配置cachedCount属性设置缓存列表项的数量。当我们不设置List的属性cachedcount时，该属性的默认值是？</p> 
<p>​ <code style="user-select: auto;">B、1</code></p> 
<hr> 
<p>33、我们需要避免在逐帧调用的接口中执行耗时操作，下面哪个选项不属于上述的接口？</p> 
<p>​ <code style="user-select: auto;">D、aboutToReuse</code></p> 
<hr> 
<p>34、关于ArkUI的ForEach和LazyForEach，下列说法错误的是?</p> 
<p>​ <code style="user-select: auto;">C、长列表滚动场景，优先使用ForEach。</code></p> 
<hr> 
<p>35、关于自动化测试描述正确的是：</p> 
<p>​ <code style="user-select: auto;">A、XTS子系统是认证测试套件的集合，当前包括acts（application compatibility test suite）应用兼容性测试套件，后续会拓展dcts(device compatibility test suite）设备兼容性测试套件等。</code></p> 
<hr> 
<p>36、以下关于HAP（Harmony Ability Package）说法正确的是（）</p> 
<p>​ <code style="user-select: auto;">C、应用工程如果包含多个Module，在应用市场上架时，会将多个.hap文件打包成一个.app文件。</code></p> 
<hr> 
<p>37、某App有A、B、C、D四个团队分别负责ModuleA、ModuleB、ModuleC和ModuleD四个业务模块，随着业务的发展，ModuleA需要跳转到ModuleB、ModuleC的页面，ModuleB需要跳转到ModuleC、ModuleD的界面，ModuleC需要跳转到ModuleA的界面，ModuleD需要跳转到ModuleB和ModuleC的界面。由于复杂的依赖关系，导致一旦有变化就需要知会各个团队，所以该团队的架构师想要解耦各个业务模块，以下哪些做法是不推荐的（）</p> 
<p>​ <code style="user-select: auto;">D、采用静态import方式引入对应跳转的页面。</code></p> 
<hr> 
<p>38、以下对系统兼容性的理解正确的是</p> 
<p>​ <code style="user-select: auto;">D、已发布的系统能力有可能会发生非兼容性变更，比如新增特性或修改问题导致的行为不兼容，这种情况下应用需要关注changelog并进行适配。</code></p> 
<hr> 
<p>39、在moduleA（HAP）类型中有一个图片名为<span class="words-blog hl-git-1" data-report-view="{&quot;spm&quot;:&quot;1001.2101.3001.10283&quot;,&quot;extra&quot;:&quot;{\&quot;words\&quot;:\&quot;image\&quot;}&quot;}" data-tit="image" data-pretit="image">image</span>.png，在moduleB（HAR类型）也存在一个图片名为image.png，而moduleA依赖于moduleB，那么在moduleA的编译产物hap包中，image.png存在情况是：</p> 
<p>​ <code style="user-select: auto;">A、仅存在moduleA的image.png</code></p> 
<hr> 
<p>40、关于代理提醒开发使用的接口是</p> 
<p>​ <code style="user-select: auto;">A、使用publishReminder发布一个提醒类通知，使用cancelReminder取消一个指定的提醒类通知</code></p> 
<hr> 
<p>41、在方舟字节码的函数调用规范中，前三个参数表示的含义分别是</p> 
<p>​ <code style="user-select: auto;">D、函数对象本身、new.Target、this</code></p> 
<hr> 
<p>42、下面关于方舟字节码格式IMM16_ID16_IMM8描述正确的是</p> 
<p>​ <code style="user-select: auto;">A、8位操作码，16位立即数，16位id，8位立即数</code></p> 
<hr> 
<p>43、以下关于垂直滚动Grid组件使用cachedCount属性的说明正确的是</p> 
<p>​ <code style="user-select: auto;">B、设置cachedCount为1，则Grid在显示范围上下各缓存1行Gridltem</code></p> 
<hr> 
<p><strong>44、从桌面冷启动如下应用代码，点击Change按钮5次，整个过程中，代码中的2条log依次出现的次数是：（不确定）</strong></p> 
<p>​ <code style="user-select: auto;">C、1,0</code></p> 
<hr> 
<p>45、以下哪份代码可以实现下图Grid布局</p> 
<p>​ <code style="user-select: auto;">C、通过GridLayoutOptions</code></p> 
<hr> 
<p><strong>46、已知下列代码PageOne页面为navigation中的某一子页面，依次点击PageOne页面中toPageTwo按钮，PageTwo页面中toPageOne按钮，此时获取当前页面的路由栈数量为多少（不确定）</strong></p> 
<p>​ <code style="user-select: auto;">C、3</code></p> 
<hr> 
<p>47、在HarmonyOS应用开发中，当开发者遇到需要分析Release版本应用的崩溃或异常堆栈信息时，为了准确地将堆栈追踪信息对应到源代码的具体位置，以下哪个描述是正确的做法或理解</p> 
<p>​ <code style="user-select: auto;">C、DevEco Studio提供的Release应用堆栈解析功能，要求开发者在遇到问题时，需上传构建产物中的特定文件（如so、source map、nameCache等）到指定工具或界面，借助这些文件辅助解析堆栈信息，实现从Release堆栈到源码的映射，便于快速定位问题</code></p> 
<hr> 
<p>48、小李正在使用DevEco Studio进行Harmony0S应用的开发工作，他需要对一个频繁被调用的函数calculateData()进行重构，为了帮助小李高效地找到calculateData()函数的所有引用位置，并确保重构时考虑周全，以下哪个步骤是正确的使用DevEco Studio的“Find Usages”功能的操作方法</p> 
<p>​ <code style="user-select: auto;">C、小李只需将光标定位在calculateData()函数名上，右键点击并选择“Find Usages"，或者直接使用快捷键Alt+ F7（macOS为Option+ F7），DevEco Studio会自动列出该函数在项目中的所有引用位置。</code></p> 
<hr> 
<p>49、在使用DevEco Studio的Profiler进行HarmonyOS应用或服务性能分析时，面对应用出现卡顿、加载慢等性能瓶颈问题，以下哪个描述最贴切地说明了“Time场景分析任务”的功能及其对开发者优化流程的帮助</p> 
<p>​ <code style="user-select: auto;">D、Time场景分析任务展示热点区域内的CPU和进程级调用栈耗时情况，支持代码跳转，助力开发者快速定位并优化耗时较长的代码段</code></p> 
<hr> 
<p>50、开发者小林正在使用DevEco Studio开发一款HarmonyOS应用， 并在真机上进行调试。他在运行应用的过程中突然发现一处UI布局需要微调，希望在不中断当前应用运行的情况下看到调整效果，基于DevEco Studio提供的Hot Reload (热重载)能力，以下哪一种做法能让小林最有效地实现他的需求</p> 
<p>​ <code style="user-select: auto;">B、在不关闭应用的情况下，直接修改代码并保存，借助Hot Reload功能在真机上实时查看布局调整的效果</code></p> 
<hr> 
<p><strong>51、项目需要为不同的设备形态（如手机、智能手表）提供定制化构建。请说明如何在DevEco studio中设置不同的构建配置，以生成针对不同设备的hap包？（不确定）</strong></p> 
<p>​ <code style="user-select: auto;">C、在模块级别build-profile.json5定义多个target，在每个target的config/deviceType中定义不同的设备类型</code></p> 
<hr> 
<p>52、一个复杂的项目，该项目不仅包含主入口模块（Entry Module），还有多个特性的功能模块（Feature Modules/HSP），并且这些模块存在着相互调用关系。为了确保在调试过程中能够完整地测试所有交互逻辑，需要将涉及到的所有模块的HAP包都部署到目标设备上。请从以下选项中选择正确的操作步骤来配置DevEco Studio，以便一次性部署和调试项目中的多个模块</p> 
<p>​ <code style="user-select: auto;">C、进入“Run &gt; Edit Configurations”菜单，“Deploy Multi Hap”选项卡下，勾选“Deploy Multi Hap Packages”，随后在列表中选择需要部署的模块。</code></p> 
<hr> 
<p>53、项目中涉及多个类的继承与重写。为了快速实现子类对父类方法的重写，小华想利用DevEco Studio提供的便捷功能来提高开发效率。他了解到，通过一个特定的操作流程，可以直接依据父类的模板生成子类中需要重写的方法代码，而无需手动编写完整方法体，在DevEco Studio中，如何正确使用Override Methods功能来快速生成子类需要重写的方法代码</p> 
<p>​ <code style="user-select: auto;">D、将光标定位到子类的定义处，按下Ctrl+O（或右键单击选择Generate... &gt; Override Methods），在弹出的对话框中选择 要重写的方法，点击OK完成生成。</code></p> 
<hr> 
<p>54、下面的配置存在有几处错误（）</p> 
<pre data-index="3" class="prettyprint set-code-show" style="user-select: auto;"><code class="prism language-typescript has-numbering" onclick="mdcp.copyCode(event)" style="position: unset; user-select: auto;"><span class="token comment">//	module.json5配置文件:</span>
<span class="token punctuation">{<!-- --></span>
	<span class="token string">"module"</span><span class="token operator">:</span> <span class="token punctuation">{<!-- --></span>
		<span class="token string">"name"</span><span class="token operator">:</span> <span class="token string">"entry"</span><span class="token punctuation">,</span>
		<span class="token comment">// ...</span>
		<span class="token string">"abilities"</span><span class="token operator">:</span> <span class="token punctuation">[</span>
			<span class="token punctuation">{<!-- --></span>
				<span class="token string">"name"</span><span class="token operator">:</span> <span class="token string">"EntryAbility"</span><span class="token punctuation">,</span>
				<span class="token string">"srcEntry"</span><span class="token operator">:</span> <span class="token string">"./ets/entryability/EntryAbility.ets"</span><span class="token punctuation">,</span>
				<span class="token comment">// ...</span>
				<span class="token string">"skills"</span><span class="token operator">:</span> <span class="token punctuation">[</span>
					<span class="token punctuation">{<!-- --></span>
						<span class="token string">"entities"</span><span class="token operator">:</span> <span class="token punctuation">[</span>
							<span class="token string">"entity.system.home"</span>
						<span class="token punctuation">]</span><span class="token punctuation">,</span>
						<span class="token string">"actions"</span><span class="token operator">:</span> <span class="token punctuation">[</span>
							<span class="token string">"ohos.want.action.home"</span>
						<span class="token punctuation">]</span>
					<span class="token punctuation">}</span>
				<span class="token punctuation">]</span><span class="token punctuation">,</span>
				<span class="token string">"metadata"</span><span class="token operator">:</span> <span class="token punctuation">[</span>
					<span class="token punctuation">{<!-- --></span>
						<span class="token string">"name"</span><span class="token operator">:</span> <span class="token string">"ohos.entry.shortcuts"</span><span class="token punctuation">,</span>
						<span class="token string">"resource"</span><span class="token operator">:</span> <span class="token string">"$profile:shortcuts_config"</span>
					<span class="token punctuation">}</span>
				<span class="token punctuation">]</span>
			<span class="token punctuation">}</span>
		<span class="token punctuation">]</span>
    <span class="token punctuation">}</span>
<span class="token punctuation">}</span>
<div class="hljs-button {2} add_def" data-title="复制"></div></code><ul class="pre-numbering" style="opacity: 0.999931;"><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li><li style="color: rgb(153, 153, 153);">3</li><li style="color: rgb(153, 153, 153);">4</li><li style="color: rgb(153, 153, 153);">5</li><li style="color: rgb(153, 153, 153);">6</li><li style="color: rgb(153, 153, 153);">7</li><li style="color: rgb(153, 153, 153);">8</li><li style="color: rgb(153, 153, 153);">9</li><li style="color: rgb(153, 153, 153);">10</li><li style="color: rgb(153, 153, 153);">11</li><li style="color: rgb(153, 153, 153);">12</li><li style="color: rgb(153, 153, 153);">13</li><li style="color: rgb(153, 153, 153);">14</li><li style="color: rgb(153, 153, 153);">15</li><li style="color: rgb(153, 153, 153);">16</li><li style="color: rgb(153, 153, 153);">17</li><li style="color: rgb(153, 153, 153);">18</li><li style="color: rgb(153, 153, 153);">19</li><li style="color: rgb(153, 153, 153);">20</li><li style="color: rgb(153, 153, 153);">21</li><li style="color: rgb(153, 153, 153);">22</li><li style="color: rgb(153, 153, 153);">23</li><li style="color: rgb(153, 153, 153);">24</li><li style="color: rgb(153, 153, 153);">25</li><li style="color: rgb(153, 153, 153);">26</li><li style="color: rgb(153, 153, 153);">27</li><li style="color: rgb(153, 153, 153);">28</li><li style="color: rgb(153, 153, 153);">29</li><li style="color: rgb(153, 153, 153);">30</li></ul><button class="btn-code-notes mdeditor" data-report-click="{&quot;spm&quot;:&quot;3001.10436&quot;,&quot;extra&quot;:{&quot;index&quot;:3,&quot;runIdx&quot;:-1}}">代码解读</button></pre> 
<pre data-index="4" class="prettyprint set-code-show" style="user-select: auto;"><code class="prism language-typescript has-numbering" onclick="mdcp.copyCode(event)" style="position: unset; user-select: auto;"><span class="token comment">//	在/resources/base/profile/目录下配置shortcuts_config.json配置文件:</span>
<span class="token punctuation">{<!-- --></span>
	<span class="token string">"shortcuts"</span><span class="token operator">:</span> <span class="token punctuation">[</span>
		<span class="token punctuation">{<!-- --></span>
			<span class="token string">"shortcutId"</span><span class="token operator">:</span> <span class="token string">"id_test1"</span><span class="token punctuation">,</span>
            <span class="token comment">//	==========================	【shortcutLabel】字符串不符合匹配规则</span>
			<span class="token string">"label"</span><span class="token operator">:</span> <span class="token string">"shortcutLabel"</span><span class="token punctuation">,</span>
			<span class="token string">"icon"</span><span class="token operator">:</span> <span class="token string">"$media:shortcutIcon"</span><span class="token punctuation">,</span>
			<span class="token string">"wants"</span><span class="token operator">:</span> <span class="token punctuation">[</span>
				<span class="token punctuation">{<!-- --></span>
					<span class="token string">"bundleName"</span><span class="token operator">:</span> <span class="token string">"com.ohos.hello"</span><span class="token punctuation">,</span>
					<span class="token string">"moduleName"</span><span class="token operator">:</span> <span class="token string">"entry"</span><span class="token punctuation">,</span>
					<span class="token string">"abilityName"</span><span class="token operator">:</span> <span class="token string">"EntryAbility"</span>
				<span class="token punctuation">}</span>
			<span class="token punctuation">]</span>
		<span class="token punctuation">}</span>
	<span class="token punctuation">]</span>
<span class="token punctuation">}</span>
<div class="hljs-button {2} add_def" data-title="复制"></div></code><ul class="pre-numbering" style="opacity: 0.999931;"><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li><li style="color: rgb(153, 153, 153);">3</li><li style="color: rgb(153, 153, 153);">4</li><li style="color: rgb(153, 153, 153);">5</li><li style="color: rgb(153, 153, 153);">6</li><li style="color: rgb(153, 153, 153);">7</li><li style="color: rgb(153, 153, 153);">8</li><li style="color: rgb(153, 153, 153);">9</li><li style="color: rgb(153, 153, 153);">10</li><li style="color: rgb(153, 153, 153);">11</li><li style="color: rgb(153, 153, 153);">12</li><li style="color: rgb(153, 153, 153);">13</li><li style="color: rgb(153, 153, 153);">14</li><li style="color: rgb(153, 153, 153);">15</li><li style="color: rgb(153, 153, 153);">16</li><li style="color: rgb(153, 153, 153);">17</li><li style="color: rgb(153, 153, 153);">18</li></ul><button class="btn-code-notes mdeditor" data-report-click="{&quot;spm&quot;:&quot;3001.10436&quot;,&quot;extra&quot;:{&quot;index&quot;:4,&quot;runIdx&quot;:-1}}">代码解读</button></pre> 
<p>​ <code style="user-select: auto;">A、1</code></p> 
<hr> 
<p><strong>55、下面的配置存在有几处错误（）（不确定）</strong></p> 
<pre data-index="5" class="prettyprint set-code-show" style="user-select: auto;"><code class="prism language-typescript has-numbering" onclick="mdcp.copyCode(event)" style="position: unset; user-select: auto;"><span class="token comment">//	app.json5配置文件:</span>
<span class="token punctuation">{<!-- --></span>
  <span class="token string">"app"</span><span class="token operator">:</span> <span class="token punctuation">{<!-- --></span>

    <span class="token string">"bundleName"</span><span class="token operator">:</span> <span class="token string">"com.example.myapplication"</span><span class="token punctuation">,</span>

    <span class="token string">"vendor"</span><span class="token operator">:</span> <span class="token string">"example"</span><span class="token punctuation">,</span>

    <span class="token string">"versionCode"</span><span class="token operator">:</span> <span class="token number">1000000</span><span class="token punctuation">,</span>

    <span class="token string">"versionName"</span><span class="token operator">:</span> <span class="token string">"1.0.2"</span><span class="token punctuation">,</span>

    <span class="token string">"icon"</span><span class="token operator">:</span> <span class="token string">"$media:app_icon"</span><span class="token punctuation">,</span>

    <span class="token string">"label"</span><span class="token operator">:</span> <span class="token string">"$string:app_name"</span><span class="token punctuation">,</span>

    <span class="token string">"bundleType"</span><span class="token operator">:</span> <span class="token string">"app"</span>
  <span class="token punctuation">}</span>
<span class="token punctuation">}</span>
<div class="hljs-button {2} add_def" data-title="复制"></div></code><ul class="pre-numbering" style="opacity: 0.999931;"><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li><li style="color: rgb(153, 153, 153);">3</li><li style="color: rgb(153, 153, 153);">4</li><li style="color: rgb(153, 153, 153);">5</li><li style="color: rgb(153, 153, 153);">6</li><li style="color: rgb(153, 153, 153);">7</li><li style="color: rgb(153, 153, 153);">8</li><li style="color: rgb(153, 153, 153);">9</li><li style="color: rgb(153, 153, 153);">10</li><li style="color: rgb(153, 153, 153);">11</li><li style="color: rgb(153, 153, 153);">12</li><li style="color: rgb(153, 153, 153);">13</li><li style="color: rgb(153, 153, 153);">14</li><li style="color: rgb(153, 153, 153);">15</li><li style="color: rgb(153, 153, 153);">16</li><li style="color: rgb(153, 153, 153);">17</li><li style="color: rgb(153, 153, 153);">18</li><li style="color: rgb(153, 153, 153);">19</li></ul><button class="btn-code-notes mdeditor" data-report-click="{&quot;spm&quot;:&quot;3001.10436&quot;,&quot;extra&quot;:{&quot;index&quot;:5,&quot;runIdx&quot;:-1}}">代码解读</button></pre> 
<pre data-index="6" class="prettyprint set-code-show" style="user-select: auto;"><code class="prism language-typescript has-numbering" onclick="mdcp.copyCode(event)" style="position: unset; user-select: auto;"><span class="token comment">// module.json5配置文件:</span>
<span class="token punctuation">{<!-- --></span>
    
	<span class="token string">"module"</span><span class="token operator">:</span> <span class="token punctuation">{<!-- --></span>
        
		<span class="token string">"name"</span><span class="token operator">:</span> <span class="token string">"feature"</span><span class="token punctuation">,</span>

   		<span class="token comment">//...</span>
        
		<span class="token string">"atomicService"</span><span class="token operator">:</span> <span class="token punctuation">{<!-- --></span>
        
			<span class="token string">"preloads"</span><span class="token operator">:</span><span class="token punctuation">[</span>
            
				<span class="token punctuation">{<!-- --></span>
                
					<span class="token string">"moduleName"</span><span class="token operator">:</span> <span class="token string">"feature"</span>
                
				<span class="token punctuation">}</span>
			<span class="token punctuation">]</span>
		<span class="token punctuation">}</span>
	<span class="token punctuation">}</span>
<span class="token punctuation">}</span>

<div class="hljs-button {2} add_def" data-title="复制"></div></code><ul class="pre-numbering" style="opacity: 0.999931;"><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li><li style="color: rgb(153, 153, 153);">3</li><li style="color: rgb(153, 153, 153);">4</li><li style="color: rgb(153, 153, 153);">5</li><li style="color: rgb(153, 153, 153);">6</li><li style="color: rgb(153, 153, 153);">7</li><li style="color: rgb(153, 153, 153);">8</li><li style="color: rgb(153, 153, 153);">9</li><li style="color: rgb(153, 153, 153);">10</li><li style="color: rgb(153, 153, 153);">11</li><li style="color: rgb(153, 153, 153);">12</li><li style="color: rgb(153, 153, 153);">13</li><li style="color: rgb(153, 153, 153);">14</li><li style="color: rgb(153, 153, 153);">15</li><li style="color: rgb(153, 153, 153);">16</li><li style="color: rgb(153, 153, 153);">17</li><li style="color: rgb(153, 153, 153);">18</li><li style="color: rgb(153, 153, 153);">19</li><li style="color: rgb(153, 153, 153);">20</li><li style="color: rgb(153, 153, 153);">21</li><li style="color: rgb(153, 153, 153);">22</li><li style="color: rgb(153, 153, 153);">23</li></ul><button class="btn-code-notes mdeditor" data-report-click="{&quot;spm&quot;:&quot;3001.10436&quot;,&quot;extra&quot;:{&quot;index&quot;:6,&quot;runIdx&quot;:-1}}">代码解读</button></pre> 
<p>​ <code style="user-select: auto;">B、2</code></p> 
<hr> 
<p>56、（1）在UIAbility的onCreate生命周期中通过EventHub的on注册“event1”和“event2”事件。</p> 
<p>（2）在UI组件的click处理事件中调用如下的eventHubFunc，连续点击2次该控件后，运行日志输出是什么：</p> 
<p>​ <code style="user-select: auto;">B、答案↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓</code></p> 
<pre data-index="7" class="set-code-show prettyprint" style="user-select: auto;"><code class="prism language-typescript has-numbering" onclick="mdcp.copyCode(event)" style="position: unset; user-select: auto;"><span class="token punctuation">[</span>Example<span class="token punctuation">]</span><span class="token punctuation">.</span><span class="token punctuation">[</span>Entry<span class="token punctuation">]</span><span class="token punctuation">.</span><span class="token punctuation">[</span>EntryAbility<span class="token punctuation">]</span> receive<span class="token punctuation">.</span> <span class="token punctuation">[</span><span class="token punctuation">]</span>
<span class="token punctuation">[</span>Example<span class="token punctuation">]</span><span class="token punctuation">.</span><span class="token punctuation">[</span>Entry<span class="token punctuation">]</span><span class="token punctuation">.</span><span class="token punctuation">[</span>EntryAbility<span class="token punctuation">]</span> receive<span class="token punctuation">.</span> <span class="token punctuation">[</span><span class="token number">2</span><span class="token punctuation">,</span><span class="token string">"test2"</span><span class="token punctuation">]</span>
<span class="token punctuation">[</span>Examp1e<span class="token punctuation">]</span><span class="token punctuation">.</span><span class="token punctuation">[</span>Entry<span class="token punctuation">]</span><span class="token punctuation">.</span><span class="token punctuation">[</span>EntryAbility<span class="token punctuation">]</span> receive<span class="token punctuation">.</span> <span class="token punctuation">[</span><span class="token number">2</span><span class="token punctuation">,</span><span class="token string">"test2"</span><span class="token punctuation">]</span>
<div class="hljs-button {2} add_def" data-title="复制"></div></code><ul class="pre-numbering" style="opacity: 0.999931;"><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li><li style="color: rgb(153, 153, 153);">3</li></ul><button class="btn-code-notes mdeditor" data-report-click="{&quot;spm&quot;:&quot;3001.10436&quot;,&quot;extra&quot;:{&quot;index&quot;:7,&quot;runIdx&quot;:-1}}">代码解读</button></pre> 
<hr> 
<p>57、singleton模式的UIAbility，在冷启动时生命周期的执行顺序是：</p> 
<p>​ <code style="user-select: auto;">A、onCreate-&gt;onWindowStageCreate-&gt;onForeground</code></p> 
<hr> 
<p><strong>58、开发者开发了一个应用，该应用只有一个hap包，其module.json5中abilities的配置如下所示，包含1个UlAbility（无Web组件）、1个FormExtensionAbility组件 、1个WorkSchedulerExtensionAbility组件，那么该应用在运行过程中，最多会存在几个应用进程：（不确定）</strong></p> 
<p>​ <code style="user-select: auto;">C、3个</code></p> 
<hr> 
<p>59、hiAppEvent提供的Watcher接口，需要订阅到OS的崩溃事件，正确的实现方式（）</p> 
<pre data-index="8" class="set-code-show prettyprint" style="user-select: auto;"><code class="prism language-typescript has-numbering" onclick="mdcp.copyCode(event)" style="position: unset; user-select: auto;"><span class="token comment">//	C</span>
hiAppEvent<span class="token punctuation">.</span><span class="token function">addWatcher</span><span class="token punctuation">(</span><span class="token punctuation">{<!-- --></span>
	name<span class="token operator">:</span> <span class="token string">"watcher"</span><span class="token punctuation">,</span>
	appEventFilters<span class="token operator">:</span> <span class="token punctuation">[</span>
		<span class="token punctuation">{<!-- --></span>
			domain<span class="token operator">:</span> hiAppEvent<span class="token punctuation">.</span>domain<span class="token punctuation">.</span><span class="token constant">OS</span><span class="token punctuation">,</span>
			names<span class="token operator">:</span> <span class="token punctuation">[</span>hiAppEvent<span class="token punctuation">.</span>event<span class="token punctuation">.</span><span class="token constant">APP_CRASH</span><span class="token punctuation">]</span>
		<span class="token punctuation">}</span>
	<span class="token punctuation">]</span><span class="token punctuation">,</span>
	<span class="token function-variable function">onReceive</span><span class="token operator">:</span> <span class="token punctuation">(</span>domain<span class="token operator">:</span> <span class="token builtin">string</span><span class="token punctuation">,</span> appEventGroups<span class="token operator">:</span> <span class="token builtin">Array</span><span class="token operator">&lt;</span>hiAppEvent<span class="token punctuation">.</span>AppEventGroup<span class="token operator">&gt;</span><span class="token punctuation">)</span> <span class="token operator">=&gt;</span> <span class="token punctuation">{<!-- --></span>
	<span class="token punctuation">}</span>
<span class="token punctuation">}</span><span class="token punctuation">)</span>
<div class="hljs-button {2} add_def" data-title="复制"></div></code><ul class="pre-numbering" style="opacity: 0.999931;"><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li><li style="color: rgb(153, 153, 153);">3</li><li style="color: rgb(153, 153, 153);">4</li><li style="color: rgb(153, 153, 153);">5</li><li style="color: rgb(153, 153, 153);">6</li><li style="color: rgb(153, 153, 153);">7</li><li style="color: rgb(153, 153, 153);">8</li><li style="color: rgb(153, 153, 153);">9</li><li style="color: rgb(153, 153, 153);">10</li><li style="color: rgb(153, 153, 153);">11</li><li style="color: rgb(153, 153, 153);">12</li></ul><button class="btn-code-notes mdeditor" data-report-click="{&quot;spm&quot;:&quot;3001.10436&quot;,&quot;extra&quot;:{&quot;index&quot;:8,&quot;runIdx&quot;:-1}}">代码解读</button></pre> 
<hr> 
<p>60、当标记了@Reuseable的自定义组件实现了组件复用后，这个组件的复用范围是什么？</p> 
<p>​ <code style="user-select: auto;">B、标记了@Reuseable的自定义组件的父组件范围内</code></p> 
<hr> 
<p>61、当使用状态变量进行ArkUI组件间数据通信的时候，如果两个组件间没有直接的嵌套关系（非父子和祖孙关系组件），但是他们又属于同一页面，最佳的装饰器应该选用哪个?</p> 
<p>​ <code style="user-select: auto;">C、LocalStorage</code></p> 
<hr> 
<p>62、某App依赖了3个ohpm库，这3个库占用的体积都比较大。在App的技术架构中，有多个hap和多个hsp均依赖这3个库，为了减少app的首包大小，以下哪些做法是无效的？</p> 
<p>​ <code style="user-select: auto;">D、将这3个ohpm库封装到har包中，并对外提供必要的接口。</code></p> 
<hr> 
<p>63、以下关于应用架构技术选型说法不正确的是（）</p> 
<p>​ <code style="user-select: auto;">D、随着业务的发展，应用功能会越来越多，某些功能可以做成动态加载，动态加载的模块采用HAR工程来构建，方便复用和共享。</code></p> 
<hr> 
<p>64、关于短时任务开发使用的接口是</p> 
<p>​ <code style="user-select: auto;">C、使用requestSuspendDelay申请任务， 使用getRemainingDelayTime获取任务剩余时间</code></p> 
<hr> 
<p>65、以下关于ArkUI NavDestination组件的生命周期执行顺序中正确的是</p> 
<p>​ <code style="user-select: auto;">D、onWillappear-&gt;onAppear-&gt;onWillShow-&gt;onShow-&gt;onWillHide-&gt;onHidden-&gt;onWillDisappear-&gt;onDisappear</code></p> 
<hr> 
<p>66、为了使isShow参数值与半模态界面的状态同步，可以使用下列那种方式双向绑定isShow参数?</p> 
<p><code style="user-select: auto;">$$this.isShow</code> === 双【$】符号修饰</p> 
<pre data-index="9" class="prettyprint set-code-show" style="user-select: auto;"><code class="prism language-typescript has-numbering" onclick="mdcp.copyCode(event)" style="position: unset; user-select: auto;">  <span class="token function">build</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{<!-- --></span>
    <span class="token function">Column</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{<!-- --></span>
      <span class="token function">Button</span><span class="token punctuation">(</span><span class="token string">"transition modal 1"</span><span class="token punctuation">)</span>
        <span class="token punctuation">.</span><span class="token function">onClick</span><span class="token punctuation">(</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token operator">=&gt;</span> <span class="token punctuation">{<!-- --></span>
          <span class="token keyword">this</span><span class="token punctuation">.</span>isShow <span class="token operator">=</span> <span class="token boolean">true</span>
        <span class="token punctuation">}</span><span class="token punctuation">)</span>
        <span class="token punctuation">.</span><span class="token function">fontSize</span><span class="token punctuation">(</span><span class="token number">20</span><span class="token punctuation">)</span>
        <span class="token punctuation">.</span><span class="token function">margin</span><span class="token punctuation">(</span><span class="token number">10</span><span class="token punctuation">)</span>
        <span class="token punctuation">.</span><span class="token function">bindSheet</span><span class="token punctuation">(</span>$$<span class="token keyword">this</span><span class="token punctuation">.</span>isShow<span class="token punctuation">,</span> <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">myBuilder</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">,</span> <span class="token punctuation">{<!-- --></span>
          height<span class="token operator">:</span> <span class="token keyword">this</span><span class="token punctuation">.</span>sheetHeight<span class="token punctuation">,</span>
        <span class="token punctuation">}</span><span class="token punctuation">)</span>
    <span class="token punctuation">}</span>
    <span class="token punctuation">.</span><span class="token function">justifyContent</span><span class="token punctuation">(</span>FlexAlign<span class="token punctuation">.</span>Center<span class="token punctuation">)</span>
    <span class="token punctuation">.</span><span class="token function">width</span><span class="token punctuation">(</span><span class="token string">'100%'</span><span class="token punctuation">)</span>
    <span class="token punctuation">.</span><span class="token function">height</span><span class="token punctuation">(</span><span class="token string">'100%'</span><span class="token punctuation">)</span>
  <span class="token punctuation">}</span>
<span class="token punctuation">}</span>
<div class="hljs-button {2} add_def" data-title="复制"></div></code><ul class="pre-numbering" style="opacity: 0.999931;"><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li><li style="color: rgb(153, 153, 153);">3</li><li style="color: rgb(153, 153, 153);">4</li><li style="color: rgb(153, 153, 153);">5</li><li style="color: rgb(153, 153, 153);">6</li><li style="color: rgb(153, 153, 153);">7</li><li style="color: rgb(153, 153, 153);">8</li><li style="color: rgb(153, 153, 153);">9</li><li style="color: rgb(153, 153, 153);">10</li><li style="color: rgb(153, 153, 153);">11</li><li style="color: rgb(153, 153, 153);">12</li><li style="color: rgb(153, 153, 153);">13</li><li style="color: rgb(153, 153, 153);">14</li><li style="color: rgb(153, 153, 153);">15</li><li style="color: rgb(153, 153, 153);">16</li><li style="color: rgb(153, 153, 153);">17</li></ul><button class="btn-code-notes mdeditor" data-report-click="{&quot;spm&quot;:&quot;3001.10436&quot;,&quot;extra&quot;:{&quot;index&quot;:9,&quot;runIdx&quot;:-1}}">代码解读</button></pre> 
<p>​ <code style="user-select: auto;">D、D</code></p> 
<hr> 
<p>67、张工正在使用DevEco Studio进行一个复杂项目的开发工作，项目中包含了成千上万行代码且涉及众多模块。在重构代码的过程中，他意识到需要对一个核心类名进行更改，考虑到这个类在整个项目中被广泛引用，手动修改不仅耗时且容易出错。基于DevEco Studio提供的代码编辑功能，以下哪个描述最准确地概述了张工如何高效且安全地完成对类名的更改，同时确保整个项目中所有相关引用同步更新？</p> 
<p>​ <code style="user-select: auto;">C、张工选中 需要更名的类名，使用快捷键Shift+F6或右键菜单Refactor -&gt; Rename，在弹出框中输入新名称并选择替换范围 后，点击“Refactor”完成更名操作，确保所有相关引用自动更新。</code></p> 
<hr> 
<p>68、开发者小张正在使用DevEco Studio开发一款HarmonyOS应用，他遇到了一个仅在应用实际运行环境中出现的问题，需要调试己部署在设备上的应用以定位问题根源，为了能够在应用已经运行的情况下介入调试，小张应该采用哪种调试方法</p> 
<p>​ <code style="user-select: auto;">B、Attach Debugger to Process，这允许他连接到正在运行的应用进程进行调试。</code></p> 
<hr> 
<p>69、在组件中，经常需要使用字符串、图片等资源。HSP中的组件需要使用资源时，一般将其所用资源放在HSP包内，而非放在HSP的使用方处，以符合高内聚低耦合的原则。下面访问HSP资源错误的是</p> 
<p>​ <code style="user-select: auto;">B、使用相对路径的方式，访问HSP中的资源。</code></p> 
<pre data-index="10" class="set-code-show prettyprint" style="user-select: auto;"><code class="prism language-typescript has-numbering" onclick="mdcp.copyCode(event)" style="position: unset; user-select: auto;"><span class="token function">Image</span><span class="token punctuation">(</span><span class="token string">"../../resources/base/media/example.png"</span><span class="token punctuation">)</span> 
    <span class="token punctuation">.</span><span class="token function">id</span><span class="token punctuation">(</span><span class="token string">'example'</span><span class="token punctuation">)</span>
	<span class="token punctuation">.</span><span class="token function">borderRadius</span><span class="token punctuation">(</span><span class="token string">'48px'</span><span class="token punctuation">)</span>
<div class="hljs-button {2} add_def" data-title="复制"></div></code><ul class="pre-numbering" style="opacity: 0.999931;"><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li><li style="color: rgb(153, 153, 153);">3</li></ul><button class="btn-code-notes mdeditor" data-report-click="{&quot;spm&quot;:&quot;3001.10436&quot;,&quot;extra&quot;:{&quot;index&quot;:10,&quot;runIdx&quot;:-1}}">代码解读</button></pre> 
<hr> 
<p>70、可以通过下面那个接口拉起导航类的垂域面板</p> 
<p>​ <code style="user-select: auto;">A、startAbilityByType</code></p> 
<hr> 
<p>71、作为应用开发者，你使用hiAppEvent订阅了崩溃事件。应用崩溃后，从onReceive接口返回的AppEventInfo中（）属性可以获取崩溃调用栈信息。</p> 
<p>​ <code style="user-select: auto;">C、params</code></p> 
<hr> 
<p>72、下面持续交付&amp;持续部署描述哪个是正确的：</p> 
<p>​ <code style="user-select: auto;">B、在持续交付实践中，要考虑处理故障回滚和紧急修复，以确保系统在出现问题时能够快速恢复和修复。</code></p> 
<hr> 
<p>73、某业务团队的架构师发现某个特性用的频率比较少，但是这个特性占用空间资源还是比较大的。为了减少首包下载体积，准备将该特性解耦出来，并对外提供API方便主模块调用。以下说法正确的是（）</p> 
<p>​ <code style="user-select: auto;">D、将该特性做成按需加载的hsp包，暴露接口给主模块使用。</code></p> 
<hr> 
<p>74、以下关于动态import说法正确的是（）</p> 
<p>​ <code style="user-select: auto;">C、动态import支持加载HSP模块、HAR模块、OHPM包、Native库</code></p> 
<hr> 
<p>75、如果想让outer button响应事件，hitTestBehavior该怎么配</p> 
<p>​ <code style="user-select: auto;">B、HitTestMode.Transparent</code></p> 
<hr> 
<p>76、在使用DevEco Studio进行混合语言开发时，开发者小李通过Napi引用了Native 接口的文件（例如d.ts文件）。他想要直接从这些接口跳转到其对应的C/C++函数实现处进行代码审查。请从以下选项中选择最合适的操作步骤来帮助小李实现这一目标</p> 
<p>​ <code style="user-select: auto;">A、在声明或引用 了Native接口的文件中，比如d.ts文件，小李可以直接选中接口名称，右键点击并在弹出的菜单中选择“Go To &gt; Implementation(s)”（转到 &gt; 实现）。还可以使用快捷键CtrI+Alt+B；如果是macOS用户，则使用Command+Option+B，直接跳转到对应的C/C++函数实现位置。</code></p> 
<hr> 
<p>77、HarmonyOS提供了多种包结构，每种包编译后的产物都不同，下面说法错误的是</p> 
<p>​ <code style="user-select: auto;">A、app包编译后的产物是.app文件。</code>。</p> 
<hr> 
<p><strong>78、下面持续集成描述哪项是错误的：（不确定）</strong></p> 
<p>​ <code style="user-select: auto;">C、持续集成就是持续编译， 二者异曲同工</code></p> 
<hr> 
<p>79、关于延迟任务开发使用的接口是</p> 
<p>​ <code style="user-select: auto;">C、使用startWork申请任务，使用stopWork取消任务，使用getWorkStatus获取任务状态</code></p> 
<hr> 
<p>80、开发者张工想要高效地管理HarmonyOS设备中的文件，包括查看文件列表、进行文件搜索、新建及删除操作，以及在设备与PC间传输文件，而无需使用命令行工具。以下哪个选项最能准确概括张工能通过哪个工具直接在DevEco Studio界面完成上述所有操作</p> 
<p>​ <code style="user-select: auto;">D、DevEco Studio的Device File Browser</code></p> 
<hr> 
<p>81、开发者在编写ArkUI代码时，想要提前预览下所编写的组件的效果，下述哪个组件可以使用DevEco Studio Previewer正常预览？</p> 
<pre data-index="11" class="set-code-show prettyprint" style="user-select: auto;"><code class="prism language-typescript has-numbering" onclick="mdcp.copyCode(event)" style="position: unset; user-select: auto;"><span class="token comment">//	D</span>
@Preview
@Component 
struct TitleSample <span class="token punctuation">{<!-- --></span> 
  @<span class="token function">StorageProp</span><span class="token punctuation">(</span><span class="token string">'title'</span><span class="token punctuation">)</span> title<span class="token operator">:</span> <span class="token builtin">string</span> <span class="token operator">=</span> <span class="token string">'PlaceHolder'</span><span class="token punctuation">;</span>
  <span class="token function">build</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{<!-- --></span> 
    <span class="token function">Text</span><span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span>title<span class="token punctuation">)</span> 
  <span class="token punctuation">}</span> 
<span class="token punctuation">}</span>
<div class="hljs-button {2} add_def" data-title="复制"></div></code><ul class="pre-numbering" style="opacity: 0.999931;"><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li><li style="color: rgb(153, 153, 153);">3</li><li style="color: rgb(153, 153, 153);">4</li><li style="color: rgb(153, 153, 153);">5</li><li style="color: rgb(153, 153, 153);">6</li><li style="color: rgb(153, 153, 153);">7</li><li style="color: rgb(153, 153, 153);">8</li><li style="color: rgb(153, 153, 153);">9</li></ul><button class="btn-code-notes mdeditor" data-report-click="{&quot;spm&quot;:&quot;3001.10436&quot;,&quot;extra&quot;:{&quot;index&quot;:11,&quot;runIdx&quot;:-1}}">代码解读</button></pre> 
<hr> 
<p>82、ArkUI组件复用的作用机制是减少了什么时间从而降低了丢帧率？</p> 
<p>​ <code style="user-select: auto;">D、组件节点和对象的创建时间</code></p> 
<hr> 
<p>83、关于代码门禁理解正确的是：</p> 
<p>​ <code style="user-select: auto;">A、代码门禁则是在代码合并之前就验证代码来保护主干分支的完整性。通过这种方式，可以保护主分支代码避免因合码导致的构建中断，以确保master分支代码始终是可部署的，并且不会因明显的错误而影响到你正在并行开发的同事工作。</code></p> 
<hr> 
<p>84、下面关于方舟字节码格式PREF_IMM16_V8_V8描述正确的是</p> 
<p>​ <code style="user-select: auto;">C、16位前缀操作码，16位立即数，2个8位寄存器</code></p> 
<hr> 
<p>85、以下哪些赋值语句在ArkTS中是合法。</p> 
<pre data-index="12" class="set-code-show prettyprint" style="user-select: auto;"><code class="prism language-typescript has-numbering" onclick="mdcp.copyCode(event)" style="position: unset; user-select: auto;"><span class="token keyword">class</span> <span class="token class-name"><span class="token constant">A</span></span> <span class="token punctuation">{<!-- --></span>
  v<span class="token operator">:</span> <span class="token builtin">number</span> <span class="token operator">=</span> <span class="token number">0</span><span class="token punctuation">;</span>
<span class="token punctuation">}</span>
<span class="token keyword">class</span> <span class="token class-name"><span class="token constant">B</span></span> <span class="token keyword">extends</span> <span class="token class-name"><span class="token constant">A</span></span> <span class="token punctuation">{<!-- --></span>
  u<span class="token operator">:</span> <span class="token builtin">string</span> <span class="token operator">=</span> <span class="token string">''</span><span class="token punctuation">;</span>
<span class="token punctuation">}</span>
<span class="token keyword">class</span> <span class="token class-name"><span class="token constant">C</span></span> <span class="token punctuation">{<!-- --></span>
  v<span class="token operator">:</span> <span class="token builtin">number</span> <span class="token operator">=</span> <span class="token number">0</span><span class="token punctuation">;</span>
<span class="token punctuation">}</span>

<span class="token keyword">let</span> a1<span class="token operator">:</span> <span class="token constant">A</span> <span class="token operator">=</span> <span class="token keyword">new</span> <span class="token class-name"><span class="token constant">C</span></span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
<span class="token keyword">let</span> a2<span class="token operator">:</span> <span class="token constant">A</span> <span class="token operator">=</span> <span class="token keyword">new</span> <span class="token class-name"><span class="token constant">B</span></span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
<span class="token keyword">let</span> a3<span class="token operator">:</span> <span class="token constant">B</span> <span class="token operator">=</span> <span class="token keyword">new</span> <span class="token class-name"><span class="token constant">A</span></span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
<span class="token keyword">let</span> a4<span class="token operator">:</span> <span class="token constant">C</span> <span class="token operator">=</span> <span class="token keyword">new</span> <span class="token class-name"><span class="token constant">B</span></span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
<div class="hljs-button {2} add_def" data-title="复制"></div></code><ul class="pre-numbering" style="opacity: 0.999931;"><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li><li style="color: rgb(153, 153, 153);">3</li><li style="color: rgb(153, 153, 153);">4</li><li style="color: rgb(153, 153, 153);">5</li><li style="color: rgb(153, 153, 153);">6</li><li style="color: rgb(153, 153, 153);">7</li><li style="color: rgb(153, 153, 153);">8</li><li style="color: rgb(153, 153, 153);">9</li><li style="color: rgb(153, 153, 153);">10</li><li style="color: rgb(153, 153, 153);">11</li><li style="color: rgb(153, 153, 153);">12</li><li style="color: rgb(153, 153, 153);">13</li><li style="color: rgb(153, 153, 153);">14</li></ul><button class="btn-code-notes mdeditor" data-report-click="{&quot;spm&quot;:&quot;3001.10436&quot;,&quot;extra&quot;:{&quot;index&quot;:12,&quot;runIdx&quot;:-1}}">代码解读</button></pre> 
<p>​ <code style="user-select: auto;">B、a2</code></p> 
<hr> 
<p>86、Text组件不支持以下哪种使用方式？</p> 
<pre data-index="13" class="prettyprint set-code-show" style="user-select: auto;"><code class="prism language-typescript has-numbering" onclick="mdcp.copyCode(event)" style="position: unset; user-select: auto;"><span class="token comment">//	C</span>
@Entry
@Component
struct styledStringDemo <span class="token punctuation">{<!-- --></span>
  scroll<span class="token operator">:</span> Scroller <span class="token operator">=</span> <span class="token keyword">new</span> <span class="token class-name">Scroller</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
  layout<span class="token operator">:</span> TextLayoutManager <span class="token operator">=</span> <span class="token keyword">new</span> <span class="token class-name">TextLayoutManager</span><span class="token punctuation">(</span><span class="token punctuation">)</span>
  controller1<span class="token operator">:</span> TextController <span class="token operator">=</span> <span class="token keyword">new</span> <span class="token class-name">TextController</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>

  <span class="token keyword">async</span> <span class="token function">onPageShow</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{<!-- --></span>
    <span class="token keyword">this</span><span class="token punctuation">.</span>controller1<span class="token punctuation">.</span><span class="token function">setLayout</span> <span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span>layout<span class="token punctuation">)</span>
  <span class="token punctuation">}</span>

  <span class="token function">build</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{<!-- --></span>
    <span class="token function">Column</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{<!-- --></span>
      <span class="token function">Text</span> <span class="token punctuation">(</span><span class="token keyword">undefined</span><span class="token punctuation">,</span> <span class="token punctuation">{<!-- --></span> controller<span class="token operator">:</span> <span class="token keyword">this</span><span class="token punctuation">.</span>controller1 <span class="token punctuation">}</span><span class="token punctuation">)</span>
    <span class="token punctuation">}</span><span class="token punctuation">.</span><span class="token function">width</span><span class="token punctuation">(</span><span class="token string">'100%'</span><span class="token punctuation">)</span>
  <span class="token punctuation">}</span>
<span class="token punctuation">}</span>
<div class="hljs-button {2} add_def" data-title="复制"></div></code><ul class="pre-numbering" style="opacity: 0.999931;"><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li><li style="color: rgb(153, 153, 153);">3</li><li style="color: rgb(153, 153, 153);">4</li><li style="color: rgb(153, 153, 153);">5</li><li style="color: rgb(153, 153, 153);">6</li><li style="color: rgb(153, 153, 153);">7</li><li style="color: rgb(153, 153, 153);">8</li><li style="color: rgb(153, 153, 153);">9</li><li style="color: rgb(153, 153, 153);">10</li><li style="color: rgb(153, 153, 153);">11</li><li style="color: rgb(153, 153, 153);">12</li><li style="color: rgb(153, 153, 153);">13</li><li style="color: rgb(153, 153, 153);">14</li><li style="color: rgb(153, 153, 153);">15</li><li style="color: rgb(153, 153, 153);">16</li><li style="color: rgb(153, 153, 153);">17</li><li style="color: rgb(153, 153, 153);">18</li></ul><button class="btn-code-notes mdeditor" data-report-click="{&quot;spm&quot;:&quot;3001.10436&quot;,&quot;extra&quot;:{&quot;index&quot;:13,&quot;runIdx&quot;:-1}}">代码解读</button></pre> 
<hr> 
<p>87、当前您在开发一个ArkTS、Stage模型的HarmonyOS工程，关于当前ArkTS工程目录结构，下列选项说法错误的是？</p> 
<p>​ <code style="user-select: auto;">C、build-profile.json5：应用级编译构建任务脚本。</code></p> 
<hr> 
<p>88、当您开始开发一个应用/服务时，首先需要根据工程创建向导，创建一个新的工程，工具会自动生成对应的代码和资源模板。关于新建工程，下列选项说法正确的是？</p> 
<p>​ <code style="user-select: auto;">D、Compatible SDK是兼容的最低API Version。</code></p> 
<hr> 
<p>89、在编译构建HAP时，会从HAP模块及依赖的模块中收集资源文件，如果不同模块下的资源文件出现重名冲突时，会按照优先级进行覆盖，现在有一个HAP依赖了两个HAR，依赖配置如下所示：</p> 
<pre data-index="14" class="set-code-show prettyprint" style="user-select: auto;"><code class="prism language-typescript has-numbering" onclick="mdcp.copyCode(event)" style="position: unset; user-select: auto;"><span class="token comment">// oh-package.json5</span>
<span class="token punctuation">{<!-- --></span>
	<span class="token string">"dependencies"</span><span class="token operator">:</span> <span class="token punctuation">{<!-- --></span>
		<span class="token string">"dayjs"</span><span class="token operator">:</span> <span class="token string">"^1.10.4"</span>
		<span class="token string">"lottie"</span><span class="token operator">:</span> <span class="token string">"^2.0.0"</span>
	<span class="token punctuation">}</span>
<span class="token punctuation">}</span>
<div class="hljs-button {2} add_def" data-title="复制"></div></code><ul class="pre-numbering" style="opacity: 0.999931;"><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li><li style="color: rgb(153, 153, 153);">3</li><li style="color: rgb(153, 153, 153);">4</li><li style="color: rgb(153, 153, 153);">5</li><li style="color: rgb(153, 153, 153);">6</li><li style="color: rgb(153, 153, 153);">7</li></ul><button class="btn-code-notes mdeditor" data-report-click="{&quot;spm&quot;:&quot;3001.10436&quot;,&quot;extra&quot;:{&quot;index&quot;:14,&quot;runIdx&quot;:-1}}">代码解读</button></pre> 
<p>在资源覆盖时，以下优先级排序正确的是（）</p> 
<p>​ <code style="user-select: auto;">C、AppScope&gt;HAP包自身模块&gt;dayjs模块&gt;lottie模块</code></p> 
<hr> 
<p>90、作为一个应用开发者，想搭建运维平台，想在应用内定时读取当前的内存信息，可以通过（）接口来实现。</p> 
<p>​ <code style="user-select: auto;">D、hiDebug</code></p> 
<hr> 
<p>91、如果要实现Row组件内的子元素均匀排列，且第一个元素与行首对齐，最后一个元素与行尾对齐，需要使用justifyContent的哪个枚举值</p> 
<p>​ A、<code style="user-select: auto;">SpaceBetween</code></p> 
<hr> 
<p>92、在一个包含多个模块（如entry、feature、 service、 <span class="words-blog hl-git-1" data-report-view="{&quot;spm&quot;:&quot;1001.2101.3001.10283&quot;,&quot;extra&quot;:&quot;{\&quot;words\&quot;:\&quot;library\&quot;}&quot;}" data-tit="library" data-pretit="library">library</span>等）的大型HarmonyOS应用项目中，如果某个模块feature对另外一个公共库模块library有依赖，如何通过DevEco Studio正确配置项目依赖关系</p> 
<p>​ <code style="user-select: auto;">B、在feature的oh-package.json5文件的dependencies字段中配置library的依赖</code></p> 
<hr> 
<p>93、开发者小李遇到了一个复杂的问题，该问题仅在特定的代码执行路径上出现，且难以复现。他使用的是C++进行核心算法开发，代码的逻辑密集且对性能要求极高，DevEco Studio为C/C++开发者提供的高级调试能力，以下哪个能力可以帮助小李查看代码历史执行路径，回溯到关键的变量状态</p> 
<p>​ <code style="user-select: auto;">C、反向调试能力：允许开发者在调试过程中回退回到之前的代码行或断点,不仅查看过去的堆栈信息，还能重现历史的全局、静态和局部变量状态，帮助深入理解代码历史行为，特别是对于复杂逻辑和难以复现的bug定位至关重要</code></p> 
<hr> 
<p>94、在开发HarmonyOS应用工程时，随着业务的发展，现在需要创建一个模块，关于在DevEco Studio中创建Module，下列选项哪种方式是错误的？</p> 
<p>​ <code style="user-select: auto;">D、在hvigor目录下，单击鼠标右键，选择New &gt; Module... 创建新的Module，此时module将创建在该文件目录下。</code></p> 
<hr> 
<p>95、一个应用项目工程中，模块依赖关系如下图所示，那么在最终编译结果.app文件中，存在的编译产物是：</p> 
<p>​ <code style="user-select: auto;">D、A.hap + D.hsp</code></p> 
<hr> 
<p>96、小华正在使用DevEco studio开发一款基于HarmonyOS的ArkUI应用，该应用需要实现一个功能，即当用户点击按钮时，通过ArkTS/JS API调用系统的分享功能。小华对具体的API调用细节不太熟悉，如何通过DevEco Studio快速查阅相关的API文档。</p> 
<p>​ <code style="user-select: auto;">B、小华将鼠标悬停在编辑器中已经键入或打算键入的API调用（例如@system.router.push）上，等待编辑器自动弹出悬浮提示框，显示该API的简要信息和不同版本参数说明。随后，点击提示框右下角的“Show in API Reference”链接，直接跳转到详尽的API参考文档页面。</code></p> 
<hr> 
<p>97、WebSocket连接开发步骤描述错误的是</p> 
<p>​ <code style="user-select: auto;">E、调用Session.start方法开启metadata数据输出</code></p> 
<hr> 
<p>98、关于静态检查描述错误的是</p> 
<p>​ <code style="user-select: auto;">A、静态检查可以检测代码中的语法错误和潜在的逻辑错误，也支持检测代码在运行时现的错误，因此静态检查可以替代动态测试。</code></p> 
<hr> 
<p>99、关于长时任务开发使用的接口是</p> 
<p>​ <code style="user-select: auto;">A、使用startBackgroundRunning申请任务，使用stopBackgroundRunning取消任务</code></p> 
<hr> 
<p>100、张工在使用DevEco Studio开发HarmonyOS应用时，遇到了代码编译警告和错误，为了提高开发效率，哪一项正确描述了张工如何利用DevEco Studio的“Quick Fix”功能来有效管理和修复代码中的问题？（）</p> 
<p>​ <code style="user-select: auto;">A、张工通过双击Shift键打开搜索框入"problems"打开问题工具面板，双击具体告警条目可直接跳转到问题代码行。接着，将光标置于告警位置，利用弹出的悬浮窗选择合适的修复建议或点击"More actions"以查看更多修复选项</code></p> 
<hr> 
<h3><a name="t4"></a><a id="___20___60_855"></a>多选题 20道 60分</h3> 
<hr> 
<p>1、在开发过程中，我们可以将每个功能模块作为一个独立的Module进行开发。关于Module，下列选项说法正确的是？</p> 
<p>​ <code style="user-select: auto;">A、feature类型的Module：应用的动态特性模块，编译后生成feature类型的HAP。一个应用中可以包含一个或多个feature类型的HAP，也可以不包含。</code></p> 
<p>​ <code style="user-select: auto;">B、Shared Library：动态共享库。HSP中的代码和资源可以独立编译，运行时在一个进程中代码也只会存在一份。</code></p> 
<p>​ <code style="user-select: auto;">C、Static Library：静态共享库。HAR中的代码和资源跟随使用方编译，如果有多个使用方，它们的编译产物中会存在多份相同拷贝。</code></p> 
<hr> 
<p>2、某业务团队发现用户对他们App的某个特性使用率并不高，为了节省用户首次下载安装包的体积，考虑将该特性做成按需加载，那么推荐该特性使用的工程模块类型是？</p> 
<p>​ <code style="user-select: auto;">A、hap</code></p> 
<p>​ <code style="user-select: auto;">C、hsp</code></p> 
<hr> 
<p>3、哪些是持续部署最佳实践？</p> 
<p>​ <code style="user-select: auto;">A、监控和回滚机制：实时监控部署后的应用状态，如有问题及时回滚。</code></p> 
<p>​ <code style="user-select: auto;">B、自动化部署流程：从代码提交到部署的整个流程应尽可能自动化。</code></p> 
<p>​ <code style="user-select: auto;">D、灰度发布：先在小部分用户或区域进行部署，观察没问题后再全面推广。</code></p> 
<p>​ <code style="user-select: auto;">G、环境一致性：保持开发、测试、生产等环境的高度一致性。</code></p> 
<hr> 
<p>4、以下代码片段哪几处违反了ArkTS语法规范。</p> 
<p>​ <code style="user-select: auto;">B、delete p.x;</code></p> 
<p>​ <code style="user-select: auto;">C、p.z = 2.0;</code></p> 
<p>​ <code style="user-select: auto;">D、p.x = 'Hello!';</code></p> 
<hr> 
<p><strong>5、以下napi代码有问题的是（不确定）</strong></p> 
<pre data-index="15" class="prettyprint set-code-show" style="user-select: auto;"><code class="prism language-typescript has-numbering" onclick="mdcp.copyCode(event)" style="position: unset; user-select: auto;"><span class="token comment">//	B</span>
napi_ref g_ref <span class="token operator">=</span> nullptr<span class="token punctuation">;</span>
<span class="token comment">/***** excute in main thread *****/</span>
<span class="token keyword">static</span> napi_value <span class="token function">DemoInMainThread</span><span class="token punctuation">(</span>napi_env env<span class="token punctuation">,</span> napi_callback_info info<span class="token punctuation">)</span>
<span class="token punctuation">{<!-- --></span>
    napi_value <span class="token builtin">string</span> <span class="token operator">=</span> nullptr<span class="token punctuation">;</span>
    <span class="token function">napi_create_string_utf8</span><span class="token punctuation">(</span>env<span class="token punctuation">,</span> <span class="token string">"bar"</span><span class="token punctuation">,</span> <span class="token constant">NAPI_AUTO_LENGTH</span><span class="token punctuation">,</span> <span class="token operator">&amp;</span><span class="token builtin">string</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token function">napi_create_reference</span><span class="token punctuation">(</span>env<span class="token punctuation">,</span> <span class="token builtin">string</span><span class="token punctuation">,</span> <span class="token number">1</span><span class="token punctuation">,</span> <span class="token operator">&amp;</span>g_ref<span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token keyword">return</span> <span class="token builtin">string</span><span class="token punctuation">;</span>
<span class="token punctuation">}</span>

<span class="token comment">/***** excute in worker thread *****/</span>
<span class="token keyword">static</span> napi_value <span class="token function">DemoInWorkerThread</span><span class="token punctuation">(</span>napi_env env<span class="token punctuation">,</span> napi_callback_info info<span class="token punctuation">)</span>
<span class="token punctuation">{<!-- --></span>
    napi_value <span class="token builtin">string</span> <span class="token operator">=</span> nullptr<span class="token punctuation">;</span>
    <span class="token function">napi_get_reference_value</span><span class="token punctuation">(</span>env<span class="token punctuation">,</span> g_ref<span class="token punctuation">,</span> <span class="token operator">&amp;</span><span class="token builtin">string</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
    
    napi_value object <span class="token operator">=</span> nullptr<span class="token punctuation">;</span>
    <span class="token function">napi_create_object</span><span class="token punctuation">(</span>env<span class="token punctuation">,</span> <span class="token operator">&amp;</span>object<span class="token punctuation">)</span><span class="token punctuation">;</span>
    
    <span class="token function">napi_set_named_property</span><span class="token punctuation">(</span>env<span class="token punctuation">,</span> object<span class="token punctuation">,</span> <span class="token string">"foo"</span><span class="token punctuation">,</span> <span class="token builtin">string</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token keyword">return</span> object<span class="token punctuation">;</span>
<span class="token punctuation">}</span>
<div class="hljs-button {2} add_def" data-title="复制"></div></code><ul class="pre-numbering" style="opacity: 0.999931;"><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li><li style="color: rgb(153, 153, 153);">3</li><li style="color: rgb(153, 153, 153);">4</li><li style="color: rgb(153, 153, 153);">5</li><li style="color: rgb(153, 153, 153);">6</li><li style="color: rgb(153, 153, 153);">7</li><li style="color: rgb(153, 153, 153);">8</li><li style="color: rgb(153, 153, 153);">9</li><li style="color: rgb(153, 153, 153);">10</li><li style="color: rgb(153, 153, 153);">11</li><li style="color: rgb(153, 153, 153);">12</li><li style="color: rgb(153, 153, 153);">13</li><li style="color: rgb(153, 153, 153);">14</li><li style="color: rgb(153, 153, 153);">15</li><li style="color: rgb(153, 153, 153);">16</li><li style="color: rgb(153, 153, 153);">17</li><li style="color: rgb(153, 153, 153);">18</li><li style="color: rgb(153, 153, 153);">19</li><li style="color: rgb(153, 153, 153);">20</li><li style="color: rgb(153, 153, 153);">21</li><li style="color: rgb(153, 153, 153);">22</li><li style="color: rgb(153, 153, 153);">23</li></ul><button class="btn-code-notes mdeditor" data-report-click="{&quot;spm&quot;:&quot;3001.10436&quot;,&quot;extra&quot;:{&quot;index&quot;:15,&quot;runIdx&quot;:-1}}">代码解读</button></pre> 
<pre data-index="16" class="prettyprint set-code-show" style="user-select: auto;"><code class="prism language-typescript has-numbering" onclick="mdcp.copyCode(event)" style="position: unset; user-select: auto;"><span class="token comment">//	D</span>
<span class="token keyword">static</span> napi_value <span class="token function">Demo</span><span class="token punctuation">(</span>napi_env env<span class="token punctuation">,</span> napi_callback_info info<span class="token punctuation">)</span>
<span class="token punctuation">{<!-- --></span>
    size_t argc <span class="token operator">=</span> <span class="token number">1</span><span class="token punctuation">;</span>
    napi_value args<span class="token punctuation">[</span><span class="token number">1</span><span class="token punctuation">]</span> <span class="token operator">=</span> <span class="token punctuation">{<!-- --></span>nullptr<span class="token punctuation">}</span><span class="token punctuation">;</span>

    <span class="token function">napi_get_cb_info</span><span class="token punctuation">(</span>env<span class="token punctuation">,</span> info<span class="token punctuation">,</span> <span class="token operator">&amp;</span>argc<span class="token punctuation">,</span> args<span class="token punctuation">,</span> nullptr<span class="token punctuation">,</span> nullptr<span class="token punctuation">)</span><span class="token punctuation">;</span>
    napi_value sizeObj <span class="token operator">=</span> nullptr<span class="token punctuation">;</span>
    
    napi_handle_scope scope <span class="token operator">=</span> nullptr<span class="token punctuation">;</span>
    <span class="token function">napi_open_handle_scope</span><span class="token punctuation">(</span>env<span class="token punctuation">,</span> <span class="token operator">&amp;</span>scope<span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token function">napi_call_function</span><span class="token punctuation">(</span>env<span class="token punctuation">,</span> nullptr<span class="token punctuation">,</span> args<span class="token punctuation">[</span><span class="token number">0</span><span class="token punctuation">]</span><span class="token punctuation">,</span> <span class="token number">0</span><span class="token punctuation">,</span> nullptr<span class="token punctuation">,</span> <span class="token operator">&amp;</span>sizeObj<span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token function">napi_close_handle_scope</span><span class="token punctuation">(</span>env<span class="token punctuation">,</span> scope<span class="token punctuation">)</span><span class="token punctuation">;</span>
    
    int64_t width <span class="token operator">=</span> <span class="token number">0</span><span class="token punctuation">;</span>
    napi_value result <span class="token operator">=</span> nullptr<span class="token punctuation">;</span>
    <span class="token function">napi_get_element</span><span class="token punctuation">(</span>env<span class="token punctuation">,</span> sizeObj<span class="token punctuation">,</span> <span class="token number">0</span><span class="token punctuation">,</span> <span class="token operator">&amp;</span>result<span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token function">napi_get_value_int64</span><span class="token punctuation">(</span>env<span class="token punctuation">,</span> result<span class="token punctuation">,</span> <span class="token operator">&amp;</span>width<span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token keyword">return</span> result<span class="token punctuation">;</span>
<span class="token punctuation">}</span>
<div class="hljs-button {2} add_def" data-title="复制"></div></code><ul class="pre-numbering" style="opacity: 0.999931;"><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li><li style="color: rgb(153, 153, 153);">3</li><li style="color: rgb(153, 153, 153);">4</li><li style="color: rgb(153, 153, 153);">5</li><li style="color: rgb(153, 153, 153);">6</li><li style="color: rgb(153, 153, 153);">7</li><li style="color: rgb(153, 153, 153);">8</li><li style="color: rgb(153, 153, 153);">9</li><li style="color: rgb(153, 153, 153);">10</li><li style="color: rgb(153, 153, 153);">11</li><li style="color: rgb(153, 153, 153);">12</li><li style="color: rgb(153, 153, 153);">13</li><li style="color: rgb(153, 153, 153);">14</li><li style="color: rgb(153, 153, 153);">15</li><li style="color: rgb(153, 153, 153);">16</li><li style="color: rgb(153, 153, 153);">17</li><li style="color: rgb(153, 153, 153);">18</li><li style="color: rgb(153, 153, 153);">19</li><li style="color: rgb(153, 153, 153);">20</li></ul><button class="btn-code-notes mdeditor" data-report-click="{&quot;spm&quot;:&quot;3001.10436&quot;,&quot;extra&quot;:{&quot;index&quot;:16,&quot;runIdx&quot;:-1}}">代码解读</button></pre> 
<hr> 
<p>6、下面关于混淆的描述正确的是</p> 
<p>​ <code style="user-select: auto;">A、代码混淆已经被集成了到SDK中，可以在DevEco Studio中方便地使用。</code></p> 
<p>​ <code style="user-select: auto;">B、针对工程源码的混淆可以降低工程被破解攻击的风险，缩短函数名、类名和属性名，减小应用的大小。</code></p> 
<p>​ <code style="user-select: auto;">C、API10及以上版本的Stage模型、编译模式为release时，默认开启代码混淆功能；默认的混淆功能仅会混淆函数参数和局部变量的名称。</code></p> 
<p>​ <code style="user-select: auto;">D、混淆支持ArkTS/TS/JS文件的混淆</code></p> 
<hr> 
<p><strong>7、下面关于方舟字节码指令含义说明正确的是（不确定）</strong></p> 
<p>​ <code style="user-select: auto;">A、假设寄存器v0存放了对象A，累加器(acc)存放了对象B，那么执行指令"Ida v0"后，v0存放对象A，acc存放对象A</code></p> 
<p>​ <code style="user-select: auto;">D、假设寄存器v0存放了对象A，寄存器v1存放了对象B，那么执行指令"mov v0,v1"后，v0存放对象B，v1存放对象B</code></p> 
<hr> 
<p>8、下面关于ArkTS中import用法，正确的是</p> 
<p>​ <code style="user-select: auto;">A、import { export1 as alias1 } from "ets file name";</code></p> 
<p>​ <code style="user-select: auto;">B、import defaultExport from "ets file name"</code></p> 
<p>​ <code style="user-select: auto;">C、import * as name from "ets file name"</code></p> 
<p>​ <code style="user-select: auto;">D、import { export1 } from "ets file name";</code></p> 
<hr> 
<p><strong>9、以下关于ArkTS线程实例间传输实现方式描述正确的是（不确定）</strong></p> 
<p>​ <code style="user-select: auto;">A、task.setCloneList([a]); taskpool.execute(task).then() =&gt; {});，TaskPool 共享传输实现方式</code></p> 
<p>​ <code style="user-select: auto;">B、taskpool.execute(task).then(() =&gt; {});，TaskPool 共享传输实现方式</code></p> 
<p>​ <code style="user-select: auto;">C、w.postMessage(a);，Worker 共享传输实现方式</code></p> 
<p>​ <code style="user-select: auto;">D、w.postMessageWithSharedSendable(a);，Worker 共享传输实现方式</code></p> 
<hr> 
<p>10、以下代码片段哪几个函数违反了ArkTS语法规范。</p> 
<pre data-index="17" class="prettyprint set-code-show" style="user-select: auto;"><code class="prism language-typescript has-numbering" onclick="mdcp.copyCode(event)" style="position: unset; user-select: auto;"><span class="token keyword">function</span> <span class="token function">foo1</span><span class="token punctuation">(</span>value1<span class="token operator">?</span><span class="token operator">:</span> <span class="token builtin">number</span><span class="token punctuation">,</span> value2<span class="token operator">:</span> <span class="token builtin">number</span><span class="token punctuation">)</span> <span class="token punctuation">{<!-- --></span>
    
	<span class="token keyword">if</span><span class="token punctuation">(</span>value1 <span class="token operator">==</span> <span class="token keyword">undefined</span><span class="token punctuation">)</span><span class="token punctuation">{<!-- --></span>
        
		<span class="token keyword">return</span> value2<span class="token punctuation">;</span>
        
	<span class="token punctuation">}</span>
    
		<span class="token keyword">return</span> value1 <span class="token operator">+</span> value2<span class="token punctuation">;</span>
    
<span class="token punctuation">}</span>

<span class="token keyword">function</span> <span class="token function">foo4</span><span class="token punctuation">(</span> <span class="token operator">...</span>arrary<span class="token operator">:</span> <span class="token builtin">number</span><span class="token punctuation">[</span><span class="token punctuation">]</span><span class="token punctuation">,</span> value<span class="token operator">:</span> <span class="token builtin">number</span><span class="token punctuation">)</span> <span class="token punctuation">{<!-- --></span>
    
	<span class="token keyword">return</span> value<span class="token punctuation">;</span>
    
<span class="token punctuation">}</span>
<div class="hljs-button {2} add_def" data-title="复制"></div></code><ul class="pre-numbering" style="opacity: 0.999931;"><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li><li style="color: rgb(153, 153, 153);">3</li><li style="color: rgb(153, 153, 153);">4</li><li style="color: rgb(153, 153, 153);">5</li><li style="color: rgb(153, 153, 153);">6</li><li style="color: rgb(153, 153, 153);">7</li><li style="color: rgb(153, 153, 153);">8</li><li style="color: rgb(153, 153, 153);">9</li><li style="color: rgb(153, 153, 153);">10</li><li style="color: rgb(153, 153, 153);">11</li><li style="color: rgb(153, 153, 153);">12</li><li style="color: rgb(153, 153, 153);">13</li><li style="color: rgb(153, 153, 153);">14</li><li style="color: rgb(153, 153, 153);">15</li><li style="color: rgb(153, 153, 153);">16</li><li style="color: rgb(153, 153, 153);">17</li></ul><button class="btn-code-notes mdeditor" data-report-click="{&quot;spm&quot;:&quot;3001.10436&quot;,&quot;extra&quot;:{&quot;index&quot;:17,&quot;runIdx&quot;:-1}}">代码解读</button></pre> 
<hr> 
<p>11、在ArkTS中，以下哪些属性的声明是正确的。</p> 
<pre data-index="18" class="set-code-show prettyprint" style="user-select: auto;"><code class="prism language-typescript has-numbering" onclick="mdcp.copyCode(event)" style="position: unset; user-select: auto;"><span class="token keyword">class</span> <span class="token class-name"><span class="token constant">C</span></span> <span class="token punctuation">{<!-- --></span>

  value1<span class="token operator">:</span> <span class="token builtin">number</span> <span class="token operator">=</span> <span class="token number">0</span><span class="token punctuation">;</span>

  value2<span class="token operator">?</span><span class="token operator">:</span> <span class="token builtin">number</span> <span class="token operator">=</span> <span class="token keyword">null</span><span class="token punctuation">;</span>

  value3<span class="token operator">:</span> <span class="token builtin">number</span> <span class="token operator">|</span> <span class="token keyword">undefined</span> <span class="token operator">=</span> <span class="token keyword">undefined</span><span class="token punctuation">;</span>

  value4<span class="token operator">?</span><span class="token operator">:</span> <span class="token builtin">number</span><span class="token punctuation">;</span>
  
<span class="token punctuation">}</span>
<div class="hljs-button {2} add_def" data-title="复制"></div></code><ul class="pre-numbering" style="opacity: 0.999931;"><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li><li style="color: rgb(153, 153, 153);">3</li><li style="color: rgb(153, 153, 153);">4</li><li style="color: rgb(153, 153, 153);">5</li><li style="color: rgb(153, 153, 153);">6</li><li style="color: rgb(153, 153, 153);">7</li><li style="color: rgb(153, 153, 153);">8</li><li style="color: rgb(153, 153, 153);">9</li><li style="color: rgb(153, 153, 153);">10</li><li style="color: rgb(153, 153, 153);">11</li></ul><button class="btn-code-notes mdeditor" data-report-click="{&quot;spm&quot;:&quot;3001.10436&quot;,&quot;extra&quot;:{&quot;index&quot;:18,&quot;runIdx&quot;:-1}}">代码解读</button></pre> 
<p>​ <code style="user-select: auto;">A、value1</code></p> 
<p>​ <code style="user-select: auto;">C、value3</code></p> 
<p>​ <code style="user-select: auto;">D、value4</code></p> 
<hr> 
<p><strong>12、如下ABC 3处手势，有机会执行的是哪几处?（不确定）</strong></p> 
<pre data-index="19" class="prettyprint set-code-show" style="user-select: auto;"><code class="prism language-typescript has-numbering" onclick="mdcp.copyCode(event)" style="position: unset; user-select: auto;">      <span class="token comment">//  A</span>
      <span class="token comment">/*.gesture(
        TapGesture({ count: 2 })
          .onAction((event: GestureEvent) =&gt; {
            if (event) {
              this.value = JSON.stringify(event.fingerList[0])
            }
          })
      )*/</span>

      <span class="token comment">//  C</span>
      <span class="token comment">/*.parallelGesture(
        PanGesture({PanDirection.Vertical})
          .onActionUpdate((event: GestureEvent)=&gt;{
            console.log("zcb onActionUpdate event offsetY " + event.offsetY + "this.lastOffset " + this.lastOffset)
          })
      )*/</span>
<div class="hljs-button {2} add_def" data-title="复制"></div></code><ul class="pre-numbering" style="opacity: 0.999931;"><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li><li style="color: rgb(153, 153, 153);">3</li><li style="color: rgb(153, 153, 153);">4</li><li style="color: rgb(153, 153, 153);">5</li><li style="color: rgb(153, 153, 153);">6</li><li style="color: rgb(153, 153, 153);">7</li><li style="color: rgb(153, 153, 153);">8</li><li style="color: rgb(153, 153, 153);">9</li><li style="color: rgb(153, 153, 153);">10</li><li style="color: rgb(153, 153, 153);">11</li><li style="color: rgb(153, 153, 153);">12</li><li style="color: rgb(153, 153, 153);">13</li><li style="color: rgb(153, 153, 153);">14</li><li style="color: rgb(153, 153, 153);">15</li><li style="color: rgb(153, 153, 153);">16</li><li style="color: rgb(153, 153, 153);">17</li></ul><button class="btn-code-notes mdeditor" data-report-click="{&quot;spm&quot;:&quot;3001.10436&quot;,&quot;extra&quot;:{&quot;index&quot;:19,&quot;runIdx&quot;:-1}}">代码解读</button></pre> 
<hr> 
<p>13、以下哪些实现方式可实现文本字号20的效果</p> 
<pre data-index="20" class="set-code-show prettyprint" style="user-select: auto;"><code class="prism language-typescript has-numbering" onclick="mdcp.copyCode(event)" style="position: unset; user-select: auto;"><span class="token comment">// 不选带有minFontSize(20)的，其余3个都选</span>
<div class="hljs-button {2} add_def" data-title="复制"></div></code><ul class="pre-numbering" style="opacity: 0.999931;"><li style="color: rgb(153, 153, 153);">1</li></ul><button class="btn-code-notes mdeditor" data-report-click="{&quot;spm&quot;:&quot;3001.10436&quot;,&quot;extra&quot;:{&quot;index&quot;:20,&quot;runIdx&quot;:-1}}">代码解读</button></pre> 
<hr> 
<p>14、依次点击A、B、C、D四个按钮，其中不会触发UI刷新的是:</p> 
<pre data-index="21" class="set-code-show prettyprint" style="user-select: auto;"><code class="prism language-typescript has-numbering" onclick="mdcp.copyCode(event)" style="position: unset; user-select: auto;">      <span class="token function">Button</span><span class="token punctuation">(</span><span class="token string">"A"</span><span class="token punctuation">)</span>
        <span class="token punctuation">.</span><span class="token function">onClick</span><span class="token punctuation">(</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token operator">=&gt;</span> <span class="token punctuation">{<!-- --></span>
          <span class="token keyword">this</span><span class="token punctuation">.</span>count <span class="token operator">=</span> <span class="token number">0</span><span class="token punctuation">;</span>
        <span class="token punctuation">}</span><span class="token punctuation">)</span>
      <span class="token function">Button</span><span class="token punctuation">(</span><span class="token string">"B"</span><span class="token punctuation">)</span>
        <span class="token punctuation">.</span><span class="token function">onClick</span><span class="token punctuation">(</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token operator">=&gt;</span> <span class="token punctuation">{<!-- --></span>
          <span class="token keyword">for</span> <span class="token punctuation">(</span><span class="token keyword">let</span> i <span class="token operator">=</span> <span class="token number">0</span><span class="token punctuation">;</span> i <span class="token operator">&lt;</span> <span class="token number">1000</span><span class="token punctuation">;</span> i<span class="token operator">++</span><span class="token punctuation">)</span> <span class="token punctuation">{<!-- --></span>
            <span class="token keyword">this</span><span class="token punctuation">.</span>count <span class="token operator">=</span> i<span class="token punctuation">;</span>
          <span class="token punctuation">}</span>
          <span class="token keyword">for</span> <span class="token punctuation">(</span><span class="token keyword">let</span> i <span class="token operator">=</span> <span class="token number">1000</span><span class="token punctuation">;</span> i <span class="token operator">&gt;</span> <span class="token number">0</span><span class="token punctuation">;</span> i<span class="token operator">--</span><span class="token punctuation">)</span><span class="token punctuation">{<!-- --></span>
            <span class="token keyword">this</span><span class="token punctuation">.</span>count <span class="token operator">=</span> i<span class="token punctuation">;</span>
          <span class="token punctuation">}</span>
          <span class="token keyword">this</span><span class="token punctuation">.</span>count<span class="token operator">--</span><span class="token punctuation">;</span>
        <span class="token punctuation">}</span><span class="token punctuation">)</span>
<div class="hljs-button {2} add_def" data-title="复制"></div></code><ul class="pre-numbering" style="opacity: 0.999931;"><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li><li style="color: rgb(153, 153, 153);">3</li><li style="color: rgb(153, 153, 153);">4</li><li style="color: rgb(153, 153, 153);">5</li><li style="color: rgb(153, 153, 153);">6</li><li style="color: rgb(153, 153, 153);">7</li><li style="color: rgb(153, 153, 153);">8</li><li style="color: rgb(153, 153, 153);">9</li><li style="color: rgb(153, 153, 153);">10</li><li style="color: rgb(153, 153, 153);">11</li><li style="color: rgb(153, 153, 153);">12</li><li style="color: rgb(153, 153, 153);">13</li><li style="color: rgb(153, 153, 153);">14</li></ul><button class="btn-code-notes mdeditor" data-report-click="{&quot;spm&quot;:&quot;3001.10436&quot;,&quot;extra&quot;:{&quot;index&quot;:21,&quot;runIdx&quot;:-1}}">代码解读</button></pre> 
<hr> 
<p>15、如何实现类似下图布局</p> 
<pre data-index="22" class="set-code-show prettyprint" style="user-select: auto;"><code class="prism language-typescript has-numbering" onclick="mdcp.copyCode(event)" style="position: unset; user-select: auto;"><span class="token comment">//	不选Grid（下面这种代码排版），其余2个都选</span>
  <span class="token function">build</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{<!-- --></span>
    <span class="token function">Scroll</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{<!-- --></span>
      <span class="token function">Column</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{<!-- --></span>
        <span class="token function">Grid</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{<!-- --></span>
          <span class="token function">GridItem</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{<!-- --></span>
<div class="hljs-button {2} add_def" data-title="复制"></div></code><ul class="pre-numbering" style="opacity: 0.999931;"><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li><li style="color: rgb(153, 153, 153);">3</li><li style="color: rgb(153, 153, 153);">4</li><li style="color: rgb(153, 153, 153);">5</li><li style="color: rgb(153, 153, 153);">6</li></ul><button class="btn-code-notes mdeditor" data-report-click="{&quot;spm&quot;:&quot;3001.10436&quot;,&quot;extra&quot;:{&quot;index&quot;:22,&quot;runIdx&quot;:-1}}">代码解读</button></pre> 
<hr> 
<p>16、Code Linter针对ArkTS/TS代码进行最佳实践/编程规范方面的检查，最佳实践/编程规范方面的检查规则可以配置，针对codelinter的配 置项一下哪些说法是正确的</p> 
<p>​ <code style="user-select: auto;">B、files：配置待检查的文件名单，如未指定目录，规则适用于所有文件，例如: [“**/*.ets”,“**/*.js”,“**/*.ts”]。</code></p> 
<p>​ <code style="user-select: auto;">C、ignore：配置无需检查的文件目录，其指定的目录或文件需使用相对路径格式，相对于code-linter.json5所在工程根目录，例如：build/**/*。</code></p> 
<p>​ <code style="user-select: auto;">D、ruleSet：配置检查使用的规则集，规则集支持一次导入多条规则。</code></p> 
<hr> 
<p>17、一个应用通常会包含多种功能，将不同的功能特性按模块来划分和管理是一种良好的设计方式。在开发过程中，我们可以将每个功能模块作为一个独立的Module进行开发，下面关于Module的说法正确的是</p> 
<p>​ <code style="user-select: auto;">A、Library类型的Module，用于实现代码和资源的共享，有两种类型，分别为Static Library和Shared Library两种类型。</code></p> 
<p>​ <code style="user-select: auto;">B、entry类型的Module，是应用的主模块，一个应用只能包含唯一一个entry类型的HAP。</code></p> 
<p>​ <code style="user-select: auto;">C、Ability类型的Module，用于实现应用的功能和特性，有两种类型，分别为entry和feature。</code></p> 
<p>​ <code style="user-select: auto;">D、feature类型的Module，应用的动态特性模块，一个应用中可以包含一个或多个feature类型的模块，也可以不包</code></p> 
<hr> 
<p>18、在大型软件工程中，一般会伴随着多团队开发，各团队开发自己的业务模块，最后再由集成交付团队集成到一起，下面哪些是大型应用模块化开发最佳实践</p> 
<p>​ <code style="user-select: auto;">A、避免用户首次下载应用耗时过长，及过多占用用户空间，不常用功能做成按需加载。</code></p> 
<p>​ <code style="user-select: auto;">B、若多个模块依赖了不同版本的HAR，使用OHPM的overrides机制配置指定使用哪个版本的HAR，以减少包大小。</code></p> 
<p>​ <code style="user-select: auto;">C、使用路由表进行模块间解耦。</code></p> 
<p>​ <code style="user-select: auto;">D、一次上架多端部署。</code></p> 
<hr> 
<p><strong>19、通过如下openLink的接口启动，如下哪些配置的UIAbility不可能被拉起（不确定）</strong></p> 
<pre data-index="23" class="prettyprint set-code-show" style="user-select: auto;"><code class="prism language-typescript has-numbering" onclick="mdcp.copyCode(event)" style="position: unset; user-select: auto;"><span class="token comment">// A</span>
<span class="token punctuation">{<!-- --></span>
	<span class="token string">"name"</span><span class="token operator">:</span> <span class="token string">"TargetAbility"</span><span class="token punctuation">,</span>
	<span class="token string">"skills"</span><span class="token operator">:</span> <span class="token punctuation">[</span>
		<span class="token punctuation">{<!-- --></span>
            <span class="token string">"actions"</span><span class="token operator">:</span> <span class="token punctuation">[</span>
            	<span class="token string">"ohos.want.action.vieData"</span><span class="token punctuation">,</span>
            <span class="token punctuation">]</span><span class="token punctuation">,</span>
            <span class="token string">"entities"</span><span class="token operator">:</span> <span class="token punctuation">[</span>
                <span class="token string">"entity.system.browsable"</span><span class="token punctuation">,</span>
            <span class="token punctuation">]</span><span class="token punctuation">,</span>
            <span class="token string">"uris"</span><span class="token operator">:</span> <span class="token punctuation">[</span>
                <span class="token punctuation">{<!-- --></span>
                    <span class="token string">"scheme"</span><span class="token operator">:</span> <span class="token string">"http"</span><span class="token punctuation">,</span>
                    <span class="token string">"host"</span><span class="token operator">:</span> <span class="token string">"www.test.com"</span><span class="token punctuation">,</span>
                    <span class="token string">"port"</span><span class="token operator">:</span> <span class="token string">"8080"</span><span class="token punctuation">,</span>
                    <span class="token string">"path"</span><span class="token operator">:</span> <span class="token string">"path"</span>
                <span class="token punctuation">}</span>			
            <span class="token punctuation">]</span>
    	<span class="token punctuation">}</span>
	<span class="token punctuation">]</span>
<span class="token punctuation">}</span>
<div class="hljs-button {2} add_def" data-title="复制"></div></code><ul class="pre-numbering" style="opacity: 0.999931;"><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li><li style="color: rgb(153, 153, 153);">3</li><li style="color: rgb(153, 153, 153);">4</li><li style="color: rgb(153, 153, 153);">5</li><li style="color: rgb(153, 153, 153);">6</li><li style="color: rgb(153, 153, 153);">7</li><li style="color: rgb(153, 153, 153);">8</li><li style="color: rgb(153, 153, 153);">9</li><li style="color: rgb(153, 153, 153);">10</li><li style="color: rgb(153, 153, 153);">11</li><li style="color: rgb(153, 153, 153);">12</li><li style="color: rgb(153, 153, 153);">13</li><li style="color: rgb(153, 153, 153);">14</li><li style="color: rgb(153, 153, 153);">15</li><li style="color: rgb(153, 153, 153);">16</li><li style="color: rgb(153, 153, 153);">17</li><li style="color: rgb(153, 153, 153);">18</li><li style="color: rgb(153, 153, 153);">19</li><li style="color: rgb(153, 153, 153);">20</li><li style="color: rgb(153, 153, 153);">21</li><li style="color: rgb(153, 153, 153);">22</li></ul><button class="btn-code-notes mdeditor" data-report-click="{&quot;spm&quot;:&quot;3001.10436&quot;,&quot;extra&quot;:{&quot;index&quot;:23,&quot;runIdx&quot;:-1}}">代码解读</button></pre> 
<pre data-index="24" class="prettyprint set-code-show" style="user-select: auto;"><code class="prism language-typescript has-numbering" onclick="mdcp.copyCode(event)" style="position: unset; user-select: auto;"><span class="token comment">//	C</span>
<span class="token punctuation">{<!-- --></span>
	<span class="token string">"name"</span><span class="token operator">:</span> <span class="token string">"TargetAbility"</span><span class="token punctuation">,</span>
	<span class="token string">"skills"</span><span class="token operator">:</span> <span class="token punctuation">[</span>
		<span class="token punctuation">{<!-- --></span>
            <span class="token string">"actions"</span><span class="token operator">:</span> <span class="token punctuation">[</span>
            	<span class="token string">"ohos.want.action.sendData"</span><span class="token punctuation">,</span>
            <span class="token punctuation">]</span><span class="token punctuation">,</span>
            <span class="token string">"entities"</span><span class="token operator">:</span> <span class="token punctuation">[</span>
                <span class="token string">"entity.system.browsable"</span><span class="token punctuation">,</span>
            <span class="token punctuation">]</span><span class="token punctuation">,</span>
            <span class="token string">"uris"</span><span class="token operator">:</span> <span class="token punctuation">[</span>
                <span class="token punctuation">{<!-- --></span>
                    <span class="token string">"scheme"</span><span class="token operator">:</span> <span class="token string">"http"</span><span class="token punctuation">,</span>
                    <span class="token string">"host"</span><span class="token operator">:</span> <span class="token string">"www.test.com"</span><span class="token punctuation">,</span>
                    <span class="token string">"port"</span><span class="token operator">:</span> <span class="token string">"8080"</span><span class="token punctuation">,</span>
                    <span class="token string">"path"</span><span class="token operator">:</span> <span class="token string">"path"</span><span class="token punctuation">,</span>
                    <span class="token string">"autoVerify"</span><span class="token operator">:</span> ture
                <span class="token punctuation">}</span>			
            <span class="token punctuation">]</span>
    	<span class="token punctuation">}</span>
	<span class="token punctuation">]</span>
<span class="token punctuation">}</span>
<div class="hljs-button {2} add_def" data-title="复制"></div></code><ul class="pre-numbering" style="opacity: 0.999931;"><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li><li style="color: rgb(153, 153, 153);">3</li><li style="color: rgb(153, 153, 153);">4</li><li style="color: rgb(153, 153, 153);">5</li><li style="color: rgb(153, 153, 153);">6</li><li style="color: rgb(153, 153, 153);">7</li><li style="color: rgb(153, 153, 153);">8</li><li style="color: rgb(153, 153, 153);">9</li><li style="color: rgb(153, 153, 153);">10</li><li style="color: rgb(153, 153, 153);">11</li><li style="color: rgb(153, 153, 153);">12</li><li style="color: rgb(153, 153, 153);">13</li><li style="color: rgb(153, 153, 153);">14</li><li style="color: rgb(153, 153, 153);">15</li><li style="color: rgb(153, 153, 153);">16</li><li style="color: rgb(153, 153, 153);">17</li><li style="color: rgb(153, 153, 153);">18</li><li style="color: rgb(153, 153, 153);">19</li><li style="color: rgb(153, 153, 153);">20</li><li style="color: rgb(153, 153, 153);">21</li><li style="color: rgb(153, 153, 153);">22</li><li style="color: rgb(153, 153, 153);">23</li></ul><button class="btn-code-notes mdeditor" data-report-click="{&quot;spm&quot;:&quot;3001.10436&quot;,&quot;extra&quot;:{&quot;index&quot;:24,&quot;runIdx&quot;:-1}}">代码解读</button></pre> 
<pre data-index="25" class="prettyprint set-code-show" style="user-select: auto;"><code class="prism language-typescript has-numbering" onclick="mdcp.copyCode(event)" style="position: unset; user-select: auto;"><span class="token comment">//	D</span>
<span class="token punctuation">{<!-- --></span>
	<span class="token string">"name"</span><span class="token operator">:</span> <span class="token string">"TargetAbility"</span><span class="token punctuation">,</span>
	<span class="token string">"skills"</span><span class="token operator">:</span> <span class="token punctuation">[</span>
		<span class="token punctuation">{<!-- --></span>
            <span class="token string">"actions"</span><span class="token operator">:</span> <span class="token punctuation">[</span>
            	<span class="token string">"ohos.want.action.SendData"</span><span class="token punctuation">,</span>
            <span class="token punctuation">]</span><span class="token punctuation">,</span>
            <span class="token string">"entities"</span><span class="token operator">:</span> <span class="token punctuation">[</span>
                <span class="token string">"entity.system.browsable"</span><span class="token punctuation">,</span>
            <span class="token punctuation">]</span><span class="token punctuation">,</span>
            <span class="token string">"uris"</span><span class="token operator">:</span> <span class="token punctuation">[</span>
                <span class="token punctuation">{<!-- --></span>
                    <span class="token string">"scheme"</span><span class="token operator">:</span> <span class="token string">"https"</span><span class="token punctuation">,</span>
                    <span class="token string">"host"</span><span class="token operator">:</span> <span class="token string">"www.test.com"</span><span class="token punctuation">,</span>
                    <span class="token string">"port"</span><span class="token operator">:</span> <span class="token string">"8080"</span><span class="token punctuation">,</span>
                    <span class="token string">"path"</span><span class="token operator">:</span> <span class="token string">"path"</span><span class="token punctuation">,</span>
                    <span class="token string">"autoVerify"</span><span class="token operator">:</span> ture
                <span class="token punctuation">}</span>			
            <span class="token punctuation">]</span>
    	<span class="token punctuation">}</span>
	<span class="token punctuation">]</span>
<span class="token punctuation">}</span>
<div class="hljs-button {2} add_def" data-title="复制"></div></code><ul class="pre-numbering" style="opacity: 0.999931;"><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li><li style="color: rgb(153, 153, 153);">3</li><li style="color: rgb(153, 153, 153);">4</li><li style="color: rgb(153, 153, 153);">5</li><li style="color: rgb(153, 153, 153);">6</li><li style="color: rgb(153, 153, 153);">7</li><li style="color: rgb(153, 153, 153);">8</li><li style="color: rgb(153, 153, 153);">9</li><li style="color: rgb(153, 153, 153);">10</li><li style="color: rgb(153, 153, 153);">11</li><li style="color: rgb(153, 153, 153);">12</li><li style="color: rgb(153, 153, 153);">13</li><li style="color: rgb(153, 153, 153);">14</li><li style="color: rgb(153, 153, 153);">15</li><li style="color: rgb(153, 153, 153);">16</li><li style="color: rgb(153, 153, 153);">17</li><li style="color: rgb(153, 153, 153);">18</li><li style="color: rgb(153, 153, 153);">19</li><li style="color: rgb(153, 153, 153);">20</li><li style="color: rgb(153, 153, 153);">21</li><li style="color: rgb(153, 153, 153);">22</li><li style="color: rgb(153, 153, 153);">23</li></ul><button class="btn-code-notes mdeditor" data-report-click="{&quot;spm&quot;:&quot;3001.10436&quot;,&quot;extra&quot;:{&quot;index&quot;:25,&quot;runIdx&quot;:-1}}">代码解读</button></pre> 
<hr> 
<p>20、某个应用的启动框架配置文件详细信息如下，以下说法正确的是:</p> 
<p>​ <code style="user-select: auto;">A、StartupTask_005会在主线程执行</code></p> 
<p>​ <code style="user-select: auto;">B、StartupTask_006会在AbilityStage的onCreate前初始化完成</code></p> 
<p>​ <code style="user-select: auto;">C、StartupTask_001会在StartupTask_004之后执行；</code></p> 
<hr> 
<p><strong>21、使用ArkUI组件复用之后，还是没有显著提升列表滑动场景的性能，属于组件复用未生效可能的原因有？(不确定）</strong></p> 
<p>​ <code style="user-select: auto;">A、页面嵌套了过多自定义组件。</code></p> 
<p>​ <code style="user-select: auto;">B、在aboutToReuse回调函数中更新了冗余的状态变量</code></p> 
<p>​ <code style="user-select: auto;">D、复用的自定义组件中使用if等条件渲染语句导致结构不相同，未使用reuseld标记。</code></p> 
<hr> 
<p>22、下面关于动态import描述正确的是</p> 
<p>​ <code style="user-select: auto;">A、动态导入import()是个异步接口，调用后将返回一个promise</code></p> 
<p>​ <code style="user-select: auto;">C、动态import根据入参是否为常量字符串分为常量动态import和变量动态import两种</code></p> 
<p>​ <code style="user-select: auto;">D、HAR模块间只有变量动态import时可以进行模块解耦</code></p> 
<hr> 
<p>23、下面关于混淆规则描述正确的是</p> 
<p>​ <code style="user-select: auto;">A、-disable-obfuscation：关闭所有混淆</code></p> 
<p>​ <code style="user-select: auto;">C、-enable-export-obfuscation：开启直接导入或导出的类或对象的名称和属性名混淆</code></p> 
<hr> 
<p>24、在ArkTS中，以下代码片段正确的是</p> 
<pre data-index="26" class="set-code-show prettyprint" style="user-select: auto;"><code class="prism language-typescript has-numbering" onclick="mdcp.copyCode(event)" style="position: unset; user-select: auto;"><span class="token comment">//	A</span>
<span class="token keyword">function</span> <span class="token function">fn</span><span class="token punctuation">(</span>x<span class="token operator">:</span> <span class="token builtin">string</span> <span class="token operator">|</span> <span class="token builtin">number</span><span class="token punctuation">)</span><span class="token operator">:</span> <span class="token builtin">string</span> <span class="token punctuation">{<!-- --></span>
  <span class="token keyword">return</span>  <span class="token string">'value: '</span> <span class="token operator">+</span> x<span class="token punctuation">;</span>
<span class="token punctuation">}</span>

<span class="token keyword">type</span> <span class="token class-name">funcType</span> <span class="token operator">=</span> <span class="token punctuation">(</span>ns<span class="token operator">:</span> <span class="token builtin">string</span><span class="token punctuation">)</span> <span class="token operator">=&gt;</span> <span class="token builtin">string</span><span class="token punctuation">;</span>
<span class="token keyword">let</span> func<span class="token operator">:</span> funcType <span class="token operator">=</span> fn<span class="token punctuation">;</span>
<div class="hljs-button {2} add_def" data-title="复制"></div></code><ul class="pre-numbering" style="opacity: 0.999931;"><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li><li style="color: rgb(153, 153, 153);">3</li><li style="color: rgb(153, 153, 153);">4</li><li style="color: rgb(153, 153, 153);">5</li><li style="color: rgb(153, 153, 153);">6</li><li style="color: rgb(153, 153, 153);">7</li></ul><button class="btn-code-notes mdeditor" data-report-click="{&quot;spm&quot;:&quot;3001.10436&quot;,&quot;extra&quot;:{&quot;index&quot;:26,&quot;runIdx&quot;:-1}}">代码解读</button></pre> 
<pre data-index="27" class="set-code-show prettyprint" style="user-select: auto;"><code class="prism language-typescript has-numbering" onclick="mdcp.copyCode(event)" style="position: unset; user-select: auto;"><span class="token comment">//	B</span>
<span class="token keyword">function</span> <span class="token function">fn</span><span class="token punctuation">(</span>x<span class="token operator">:</span> <span class="token builtin">string</span> <span class="token operator">|</span> <span class="token builtin">number</span><span class="token punctuation">)</span><span class="token operator">:</span> <span class="token builtin">string</span> <span class="token punctuation">{<!-- --></span>
  <span class="token keyword">return</span> <span class="token string">'value:'</span> <span class="token operator">+</span> x<span class="token punctuation">;</span>
<span class="token punctuation">}</span>

<span class="token keyword">type</span> <span class="token class-name">funcType</span> <span class="token operator">=</span> <span class="token punctuation">(</span>ns<span class="token operator">:</span> <span class="token builtin">string</span> <span class="token operator">|</span> <span class="token builtin">number</span><span class="token punctuation">)</span> <span class="token operator">=&gt;</span> <span class="token builtin">string</span><span class="token punctuation">;</span>
<span class="token keyword">let</span> func<span class="token operator">:</span> funcType <span class="token operator">=</span> fn<span class="token punctuation">;</span>
<div class="hljs-button {2} add_def" data-title="复制"></div></code><ul class="pre-numbering" style="opacity: 0.999931;"><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li><li style="color: rgb(153, 153, 153);">3</li><li style="color: rgb(153, 153, 153);">4</li><li style="color: rgb(153, 153, 153);">5</li><li style="color: rgb(153, 153, 153);">6</li><li style="color: rgb(153, 153, 153);">7</li></ul><button class="btn-code-notes mdeditor" data-report-click="{&quot;spm&quot;:&quot;3001.10436&quot;,&quot;extra&quot;:{&quot;index&quot;:27,&quot;runIdx&quot;:-1}}">代码解读</button></pre> 
<hr> 
<p>25、以下代码片段哪几处违反了ArkTS语法规范。</p> 
<pre data-index="28" class="set-code-show prettyprint" style="user-select: auto;"><code class="prism language-typescript has-numbering" onclick="mdcp.copyCode(event)" style="position: unset; user-select: auto;"><span class="token keyword">function</span> <span class="token function">foo</span><span class="token punctuation">(</span>value1<span class="token operator">:</span> <span class="token builtin">number</span><span class="token punctuation">,</span> value2<span class="token operator">:</span> <span class="token builtin">number</span><span class="token punctuation">)</span> <span class="token punctuation">{<!-- --></span>

    <span class="token keyword">return</span> value1 <span class="token operator">+</span> value2<span class="token punctuation">;</span> 

<span class="token punctuation">}</span>

<span class="token function">foo</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>

<span class="token function">foo</span><span class="token punctuation">(</span><span class="token number">1</span><span class="token punctuation">,</span> <span class="token number">2</span><span class="token punctuation">)</span><span class="token punctuation">;</span>

<span class="token function">foo</span><span class="token punctuation">(</span><span class="token number">1</span><span class="token punctuation">,</span> <span class="token number">2</span><span class="token punctuation">,</span> <span class="token number">3</span><span class="token punctuation">)</span><span class="token punctuation">;</span>

<span class="token function">foo</span><span class="token punctuation">(</span><span class="token number">1</span><span class="token punctuation">,</span> <span class="token number">2</span><span class="token punctuation">,</span> <span class="token number">3</span><span class="token punctuation">,</span> <span class="token number">4</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
<div class="hljs-button {2} add_def" data-title="复制"></div></code><ul class="pre-numbering" style="opacity: 0.999931;"><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li><li style="color: rgb(153, 153, 153);">3</li><li style="color: rgb(153, 153, 153);">4</li><li style="color: rgb(153, 153, 153);">5</li><li style="color: rgb(153, 153, 153);">6</li><li style="color: rgb(153, 153, 153);">7</li><li style="color: rgb(153, 153, 153);">8</li><li style="color: rgb(153, 153, 153);">9</li><li style="color: rgb(153, 153, 153);">10</li><li style="color: rgb(153, 153, 153);">11</li><li style="color: rgb(153, 153, 153);">12</li><li style="color: rgb(153, 153, 153);">13</li></ul><button class="btn-code-notes mdeditor" data-report-click="{&quot;spm&quot;:&quot;3001.10436&quot;,&quot;extra&quot;:{&quot;index&quot;:28,&quot;runIdx&quot;:-1}}">代码解读</button></pre> 
<p>​ <code style="user-select: auto;">A、foo();</code></p> 
<p>​ <code style="user-select: auto;">C、foo(1, 2, 3);</code></p> 
<p>​ <code style="user-select: auto;">D、foo(1, 2, 3, 4);</code></p> 
<hr> 
<p>26、以下关于Taskpool和Worker的描述正确的是</p> 
<p>​ <code style="user-select: auto;">A、Worker的任务执行时长上限是无限制</code></p> 
<p>​ <code style="user-select: auto;">D、TaskPool支持设置任务的优先级</code></p> 
<hr> 
<p>27、List组件onScrollIndex事件触发时机是</p> 
<p>​ <code style="user-select: auto;">A、List组件显示区域内第一个子组件或最后一个子组件或中间位置子组件索引值变化时触发</code></p> 
<p>​ <code style="user-select: auto;">D、List组件列表滚动时每帧触发</code></p> 
<hr> 
<p>28、如果想让grid上的捏合手势生效，而不跟grid上的滚动手势形成冲突，. xxxx?手势接口应该怎么配置？</p> 
<p>​ <code style="user-select: auto;">C、parallelGesture</code></p> 
<p>​ <code style="user-select: auto;">D、priorityGesture</code></p> 
<hr> 
<p>29、在基于Stage模型开发的应用项目代码下，都存在一个app.json5配置文件， 用于配置应用的全局信息，以下app.json5配置文件错误的是</p> 
<pre data-index="29" class="set-code-show prettyprint" style="user-select: auto;"><code class="prism language-typescript has-numbering" onclick="mdcp.copyCode(event)" style="position: unset; user-select: auto;"><span class="token comment">//	A</span>
<span class="token punctuation">{<!-- --></span>
  <span class="token string">"app"</span><span class="token operator">:</span> <span class="token punctuation">{<!-- --></span>
    <span class="token string">"bundleName"</span><span class="token operator">:</span> <span class="token string">"com.example.myapplication"</span><span class="token punctuation">,</span>
    <span class="token string">"vendor"</span><span class="token operator">:</span> <span class="token string">"example"</span><span class="token punctuation">,</span>
    <span class="token string">"versionCode"</span><span class="token operator">:</span> <span class="token number">1000000</span><span class="token punctuation">,</span>
    <span class="token string">"versionName"</span> <span class="token operator">:</span> <span class="token string">"1.0.2"</span><span class="token punctuation">,</span>
    <span class="token string">"icon"</span><span class="token operator">:</span> <span class="token string">"$media:app_icon"</span><span class="token punctuation">,</span>
    <span class="token comment">//	==========================	【label】字段的值需要引用</span>
    <span class="token string">"label"</span><span class="token operator">:</span> <span class="token string">"app_name"</span><span class="token punctuation">,</span>
    <span class="token string">"bundleType"</span><span class="token operator">:</span> <span class="token string">"app"</span>
  <span class="token punctuation">}</span>
<span class="token punctuation">}</span>
<div class="hljs-button {2} add_def" data-title="复制"></div></code><ul class="pre-numbering" style="opacity: 0.999931;"><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li><li style="color: rgb(153, 153, 153);">3</li><li style="color: rgb(153, 153, 153);">4</li><li style="color: rgb(153, 153, 153);">5</li><li style="color: rgb(153, 153, 153);">6</li><li style="color: rgb(153, 153, 153);">7</li><li style="color: rgb(153, 153, 153);">8</li><li style="color: rgb(153, 153, 153);">9</li><li style="color: rgb(153, 153, 153);">10</li><li style="color: rgb(153, 153, 153);">11</li><li style="color: rgb(153, 153, 153);">12</li><li style="color: rgb(153, 153, 153);">13</li></ul><button class="btn-code-notes mdeditor" data-report-click="{&quot;spm&quot;:&quot;3001.10436&quot;,&quot;extra&quot;:{&quot;index&quot;:29,&quot;runIdx&quot;:-1}}">代码解读</button></pre> 
<pre data-index="30" class="set-code-show prettyprint" style="user-select: auto;"><code class="prism language-typescript has-numbering" onclick="mdcp.copyCode(event)" style="position: unset; user-select: auto;"><span class="token comment">//	C</span>
<span class="token punctuation">{<!-- --></span>
  <span class="token string">"app"</span><span class="token operator">:</span> <span class="token punctuation">{<!-- --></span>
    <span class="token string">"bundleName"</span><span class="token operator">:</span> <span class="token string">"com.example.myapplication"</span><span class="token punctuation">,</span>
    <span class="token string">"vendor"</span><span class="token operator">:</span> <span class="token string">"example"</span><span class="token punctuation">,</span> <span class="token string">"versionCode"</span><span class="token operator">:</span> <span class="token number">1000000</span><span class="token punctuation">,</span>
    <span class="token comment">//	==========================	缺少字段【versionName】</span>
    <span class="token string">"icon"</span><span class="token operator">:</span> <span class="token string">"$media:app_icon"</span><span class="token punctuation">,</span>
    <span class="token string">"label"</span><span class="token operator">:</span> <span class="token string">"$string:app_name"</span><span class="token punctuation">,</span>
    <span class="token string">"bundleType"</span><span class="token operator">:</span> <span class="token string">"app"</span><span class="token punctuation">,</span>
  <span class="token punctuation">}</span>
<span class="token punctuation">}</span>
<div class="hljs-button {2} add_def" data-title="复制"></div></code><ul class="pre-numbering" style="opacity: 0.999931;"><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li><li style="color: rgb(153, 153, 153);">3</li><li style="color: rgb(153, 153, 153);">4</li><li style="color: rgb(153, 153, 153);">5</li><li style="color: rgb(153, 153, 153);">6</li><li style="color: rgb(153, 153, 153);">7</li><li style="color: rgb(153, 153, 153);">8</li><li style="color: rgb(153, 153, 153);">9</li><li style="color: rgb(153, 153, 153);">10</li><li style="color: rgb(153, 153, 153);">11</li></ul><button class="btn-code-notes mdeditor" data-report-click="{&quot;spm&quot;:&quot;3001.10436&quot;,&quot;extra&quot;:{&quot;index&quot;:30,&quot;runIdx&quot;:-1}}">代码解读</button></pre> 
<hr> 
<p>30、使用如下的代码去启动一个ability时，哪种skills定义的组件能够被匹配到：</p> 
<pre data-index="31" class="set-code-show prettyprint" style="user-select: auto;"><code class="prism language-typescript has-numbering" onclick="mdcp.copyCode(event)" style="position: unset; user-select: auto;"><span class="token comment">//	A</span>
<span class="token string">"skills"</span><span class="token operator">:</span> <span class="token punctuation">[</span>
	<span class="token punctuation">{<!-- --></span>
		<span class="token string">"uris"</span><span class="token operator">:</span><span class="token punctuation">[</span>
			<span class="token punctuation">{<!-- --></span>
				<span class="token string">"scheme"</span><span class="token operator">:</span> <span class="token string">"https"</span><span class="token punctuation">,</span>
				<span class="token string">"host"</span><span class="token operator">:</span> <span class="token string">"Www.test.com"</span><span class="token punctuation">,</span>
				<span class="token string">"type"</span><span class="token operator">:</span> <span class="token string">"text/plain"</span>
			<span class="token punctuation">}</span>
		<span class="token punctuation">]</span>
    <span class="token punctuation">}</span>
<span class="token punctuation">]</span>
<div class="hljs-button {2} add_def" data-title="复制"></div></code><ul class="pre-numbering" style="opacity: 0.999931;"><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li><li style="color: rgb(153, 153, 153);">3</li><li style="color: rgb(153, 153, 153);">4</li><li style="color: rgb(153, 153, 153);">5</li><li style="color: rgb(153, 153, 153);">6</li><li style="color: rgb(153, 153, 153);">7</li><li style="color: rgb(153, 153, 153);">8</li><li style="color: rgb(153, 153, 153);">9</li><li style="color: rgb(153, 153, 153);">10</li><li style="color: rgb(153, 153, 153);">11</li><li style="color: rgb(153, 153, 153);">12</li></ul><button class="btn-code-notes mdeditor" data-report-click="{&quot;spm&quot;:&quot;3001.10436&quot;,&quot;extra&quot;:{&quot;index&quot;:31,&quot;runIdx&quot;:-1}}">代码解读</button></pre> 
<pre data-index="32" class="set-code-show prettyprint" style="user-select: auto;"><code class="prism language-typescript has-numbering" onclick="mdcp.copyCode(event)" style="position: unset; user-select: auto;"><span class="token comment">//	D</span>
<span class="token string">"skills"</span><span class="token operator">:</span><span class="token punctuation">[</span>
    <span class="token punctuation">{<!-- --></span>
		<span class="token string">"uris"</span><span class="token operator">:</span><span class="token punctuation">[</span>
			<span class="token punctuation">{<!-- --></span>
				<span class="token string">"scheme"</span><span class="token operator">:</span> <span class="token string">"https"</span><span class="token punctuation">,</span>
				<span class="token string">"type"</span><span class="token operator">:</span> <span class="token string">"text/*"</span>
			<span class="token punctuation">}</span>
		<span class="token punctuation">]</span>
    <span class="token punctuation">}</span>
<span class="token punctuation">]</span>
<div class="hljs-button {2} add_def" data-title="复制"></div></code><ul class="pre-numbering" style="opacity: 0.999931;"><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li><li style="color: rgb(153, 153, 153);">3</li><li style="color: rgb(153, 153, 153);">4</li><li style="color: rgb(153, 153, 153);">5</li><li style="color: rgb(153, 153, 153);">6</li><li style="color: rgb(153, 153, 153);">7</li><li style="color: rgb(153, 153, 153);">8</li><li style="color: rgb(153, 153, 153);">9</li><li style="color: rgb(153, 153, 153);">10</li><li style="color: rgb(153, 153, 153);">11</li></ul><button class="btn-code-notes mdeditor" data-report-click="{&quot;spm&quot;:&quot;3001.10436&quot;,&quot;extra&quot;:{&quot;index&quot;:32,&quot;runIdx&quot;:-1}}">代码解读</button></pre> 
<hr> 
<p>31、以下哪些方式可以实现ArkWeb同层渲染能力（）</p> 
<pre data-index="33" class="set-code-show prettyprint" style="user-select: auto;"><code class="prism language-typescript has-numbering" onclick="mdcp.copyCode(event)" style="position: unset; user-select: auto;"><span class="token comment">//	A</span>
<span class="token function">Web</span><span class="token punctuation">(</span><span class="token operator">...</span><span class="token punctuation">)</span><span class="token punctuation">.</span><span class="token function">enableNativeEmbedMode</span><span class="token punctuation">(</span><span class="token boolean">true</span><span class="token punctuation">)</span><span class="token comment">//.registerNativeEmbedRule("embed", "native")</span>
<span class="token operator">&lt;</span>embed id<span class="token operator">=</span><span class="token string">"view"</span> <span class="token keyword">type</span><span class="token operator">=</span><span class="token string">"native/contents"</span> width<span class="token operator">=</span><span class="token string">"100%"</span> height<span class="token operator">=</span><span class="token string">"100%"</span> style<span class="token operator">=</span><span class="token string">"background-color:red"</span><span class="token operator">/</span><span class="token operator">&gt;</span>
<div class="hljs-button {2} add_def" data-title="复制"></div></code><ul class="pre-numbering" style="opacity: 0.999931;"><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li><li style="color: rgb(153, 153, 153);">3</li></ul><button class="btn-code-notes mdeditor" data-report-click="{&quot;spm&quot;:&quot;3001.10436&quot;,&quot;extra&quot;:{&quot;index&quot;:33,&quot;runIdx&quot;:-1}}">代码解读</button></pre> 
<pre data-index="34" class="set-code-show prettyprint" style="user-select: auto;"><code class="prism language-typescript has-numbering" onclick="mdcp.copyCode(event)" style="position: unset; user-select: auto;"><span class="token comment">//	D</span>
<span class="token function">Web</span><span class="token punctuation">(</span><span class="token operator">...</span><span class="token punctuation">)</span><span class="token punctuation">.</span><span class="token function">enableNativeEmbedMode</span><span class="token punctuation">(</span><span class="token boolean">true</span><span class="token punctuation">)</span><span class="token punctuation">.</span><span class="token function">registerNativeEmbedRule</span><span class="token punctuation">(</span><span class="token string">"native"</span><span class="token punctuation">,</span> <span class="token string">"test"</span><span class="token punctuation">)</span>
<span class="token operator">&lt;</span>object id<span class="token operator">=</span><span class="token string">"view"</span> <span class="token keyword">type</span><span class="token operator">=</span><span class="token string">"native/contents"</span> width<span class="token operator">=</span><span class="token string">"100%"</span> height<span class="token operator">=</span><span class="token string">"100%"</span> style<span class="token operator">=</span><span class="token string">"background-color:red"</span><span class="token operator">/</span><span class="token operator">&gt;</span>
<div class="hljs-button {2} add_def" data-title="复制"></div></code><ul class="pre-numbering" style="opacity: 0.999931;"><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li><li style="color: rgb(153, 153, 153);">3</li></ul><button class="btn-code-notes mdeditor" data-report-click="{&quot;spm&quot;:&quot;3001.10436&quot;,&quot;extra&quot;:{&quot;index&quot;:34,&quot;runIdx&quot;:-1}}">代码解读</button></pre> 
<hr> 
<p>32、用户购买商品后，你需要及时发放相关权益。但实际应用场景中，若出现异常将导致应用无法知道用户实际是否支付成功，从而无法及时发放权益，即出现掉单情况。为了确保权益发放，你需要在以下哪些场景检查用户是否存在己购未发货的商品：</p> 
<p>​ <code style="user-select: auto;">A、createPurchase请求返回1001860051-由于已经拥有该商品，购买失败时</code></p> 
<p>​ <code style="user-select: auto;">B、createPurchase请求返回1001860001-内部错误时</code></p> 
<p>​ <code style="user-select: auto;">C、应用启动时</code></p> 
<hr> 
<p>33、ArkTS对<span class="edu-hl hl hl-1" data-report-view="{&quot;spm&quot;:&quot;1001.2101.3001.7020&quot;,&quot;extra&quot;:&quot;{\&quot;word\&quot;:\&quot;并发编程\&quot;}&quot;}" data-report-click="{&quot;spm&quot;:&quot;1001.2101.3001.7020&quot;,&quot;extra&quot;:&quot;{\&quot;word\&quot;:\&quot;并发编程\&quot;}&quot;}" data-tit="并发编程" data-pretit="并发编程">并发编程</span>API和能力进行了增强，以下描述正确的是</p> 
<p>​ <code style="user-select: auto;">B、CPU密集型任务场景中， 当任务不需要长时间（3分钟） 占据后台线程， 而是一个个独立的任务时，推荐使用TaskPool进行开发。</code></p> 
<p>​ <code style="user-select: auto;">C、在并发API的形式上，目前主要有两种：Worker和TaskPool。</code></p> 
<hr> 
<p>34、ArkTS中不能使用以下哪些类型。</p> 
<p>​ <code style="user-select: auto;">A、any</code></p> 
<p>​ <code style="user-select: auto;">D、unknown</code></p> 
<hr> 
<p>35、应用开发的有些场景中，如果希望根据条件导入模块或者按需导入模块，可以使用动态导入代替静态导入，下面导入场景中适合使用动态import的是</p> 
<p>​ <code style="user-select: auto;">A、当被导入的模块，在加载时并不存在，需要异步获取。</code></p> 
<p>​ <code style="user-select: auto;">B、当静态导入的模块很明显的占用了大量的系统内存且被使用的可能性很低。</code></p> 
<p>​ <code style="user-select: auto;">C、当被导入的模块说明符, 需要动态构建。</code></p> 
<p>​ <code style="user-select: auto;">D、当静态导入的模 块很明显的降低了代码的加载速度且被使用的可能性很低,或者并不需要马上使用它。</code></p> 
<hr> 
<p>36、以下代码片段哪几个class/interface违反了ArkTS语法规范。</p> 
<p>​ <code style="user-select: auto;">A、Instructor</code></p> 
<p>​ <code style="user-select: auto;">C、Circle</code></p> 
<hr> 
<p>37、下面代码符合<span class="words-blog hl-git-1" data-report-view="{&quot;spm&quot;:&quot;1001.2101.3001.10283&quot;,&quot;extra&quot;:&quot;{\&quot;words\&quot;:\&quot;Node\&quot;}&quot;}" data-tit="Node" data-pretit="node">Node</span>-API开发规范的是</p> 
<pre data-index="35" class="set-code-show prettyprint" style="user-select: auto;"><code class="prism language-typescript has-numbering" onclick="mdcp.copyCode(event)" style="position: unset; user-select: auto;"><span class="token comment">//	A - Demo3</span>
<span class="token keyword">static</span> napi_value <span class="token function">Demo3</span><span class="token punctuation">(</span>napi_env env<span class="token punctuation">,</span> napi_callback_info info<span class="token punctuation">)</span>
<span class="token punctuation">{<!-- --></span>
  size_t argc <span class="token operator">=</span> <span class="token number">2</span><span class="token punctuation">;</span>
  napi_value argv<span class="token punctuation">[</span><span class="token number">2</span><span class="token punctuation">]</span> <span class="token operator">=</span> <span class="token punctuation">{<!-- --></span>nullptr<span class="token punctuation">}</span><span class="token punctuation">;</span>

  <span class="token function">napi_get_cb_info</span><span class="token punctuation">(</span>env<span class="token punctuation">,</span> info<span class="token punctuation">,</span> <span class="token operator">&amp;</span>argc<span class="token punctuation">,</span> nullptr<span class="token punctuation">,</span> nullptr<span class="token punctuation">,</span> nullptr<span class="token punctuation">)</span><span class="token punctuation">;</span>
  <span class="token comment">//业务代码</span>
  <span class="token keyword">return</span> nullptr<span class="token punctuation">;</span>
<span class="token punctuation">}</span>
<div class="hljs-button {2} add_def" data-title="复制"></div></code><ul class="pre-numbering" style="opacity: 0.999931;"><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li><li style="color: rgb(153, 153, 153);">3</li><li style="color: rgb(153, 153, 153);">4</li><li style="color: rgb(153, 153, 153);">5</li><li style="color: rgb(153, 153, 153);">6</li><li style="color: rgb(153, 153, 153);">7</li><li style="color: rgb(153, 153, 153);">8</li><li style="color: rgb(153, 153, 153);">9</li><li style="color: rgb(153, 153, 153);">10</li></ul><button class="btn-code-notes mdeditor" data-report-click="{&quot;spm&quot;:&quot;3001.10436&quot;,&quot;extra&quot;:{&quot;index&quot;:35,&quot;runIdx&quot;:-1}}">代码解读</button></pre> 
<pre data-index="36" class="prettyprint set-code-show" style="user-select: auto;"><code class="prism language-typescript has-numbering" onclick="mdcp.copyCode(event)" style="position: unset; user-select: auto;"><span class="token comment">//	C - Demo2</span>
<span class="token keyword">static</span> napi_value <span class="token function">Demo2</span><span class="token punctuation">(</span>napi_env env<span class="token punctuation">,</span> napi_callback_info info<span class="token punctuation">)</span>
<span class="token punctuation">{<!-- --></span>
  size_t argc <span class="token operator">=</span> <span class="token number">0</span><span class="token punctuation">;</span>

  <span class="token function">napi_get_cb_info</span><span class="token punctuation">(</span>env<span class="token punctuation">,</span> info<span class="token punctuation">,</span> <span class="token operator">&amp;</span>argc<span class="token punctuation">,</span> nullptr<span class="token punctuation">,</span> nullptr<span class="token punctuation">,</span> nullptr<span class="token punctuation">)</span><span class="token punctuation">;</span>

  <span class="token keyword">if</span> <span class="token punctuation">(</span>argc <span class="token operator">==</span> <span class="token number">0</span><span class="token punctuation">)</span> <span class="token punctuation">{<!-- --></span>
    <span class="token keyword">return</span> nullptr<span class="token punctuation">;</span>
  <span class="token punctuation">}</span>

  napi_value<span class="token operator">*</span> argv <span class="token operator">=</span> <span class="token keyword">new</span> <span class="token class-name">napi_value</span><span class="token punctuation">[</span>argc<span class="token punctuation">]</span><span class="token punctuation">;</span>
  <span class="token function">napi_get_cb_info</span><span class="token punctuation">(</span>env<span class="token punctuation">,</span> info<span class="token punctuation">,</span> <span class="token operator">&amp;</span>argc<span class="token punctuation">,</span> argv<span class="token punctuation">,</span> nullptr<span class="token punctuation">,</span> nullptr<span class="token punctuation">)</span><span class="token punctuation">;</span>
  <span class="token comment">//业务代码</span>
  <span class="token keyword">delete</span> argv<span class="token punctuation">;</span>
  <span class="token keyword">return</span> nullptr<span class="token punctuation">;</span>
<span class="token punctuation">}</span>
<div class="hljs-button {2} add_def" data-title="复制"></div></code><ul class="pre-numbering" style="opacity: 0.999931;"><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li><li style="color: rgb(153, 153, 153);">3</li><li style="color: rgb(153, 153, 153);">4</li><li style="color: rgb(153, 153, 153);">5</li><li style="color: rgb(153, 153, 153);">6</li><li style="color: rgb(153, 153, 153);">7</li><li style="color: rgb(153, 153, 153);">8</li><li style="color: rgb(153, 153, 153);">9</li><li style="color: rgb(153, 153, 153);">10</li><li style="color: rgb(153, 153, 153);">11</li><li style="color: rgb(153, 153, 153);">12</li><li style="color: rgb(153, 153, 153);">13</li><li style="color: rgb(153, 153, 153);">14</li><li style="color: rgb(153, 153, 153);">15</li><li style="color: rgb(153, 153, 153);">16</li><li style="color: rgb(153, 153, 153);">17</li></ul><button class="btn-code-notes mdeditor" data-report-click="{&quot;spm&quot;:&quot;3001.10436&quot;,&quot;extra&quot;:{&quot;index&quot;:36,&quot;runIdx&quot;:-1}}">代码解读</button></pre> 
<hr> 
<p>38、ArkTS是鸿蒙生态的应用开发语言。下列说法正确的是</p> 
<p>​ <code style="user-select: auto;">A、ArkTS在保持TypeScript （简称TS）基本语法风格的基础上，进一步通过规范强化静态检查和分析，使得在程序运行之前的开发期能检测更多错误，提升代码健壮性，并实现更好的运行性能。</code></p> 
<p>​ <code style="user-select: auto;">C、针对JavaScript（简称JS）/TS并发能力支持有限的问题，ArkTS对并发编程API和能力进行了增强。</code></p> 
<p>​ <code style="user-select: auto;">D、ArkTS提供了声明式UI范式、状态管理支持等相应的能力，让开发者可以以更简洁、更自然的方式开发应用。</code></p> 
<hr> 
<p>39、lmage组件以下哪些方式可显示图片？</p> 
<pre data-index="37" class="set-code-show prettyprint" style="user-select: auto;"><code class="prism language-typescript has-numbering" onclick="mdcp.copyCode(event)" style="position: unset; user-select: auto;"><span class="token comment">//	4个全选</span>
<div class="hljs-button {2} add_def" data-title="复制"></div></code><ul class="pre-numbering" style="opacity: 0.999931;"><li style="color: rgb(153, 153, 153);">1</li></ul><button class="btn-code-notes mdeditor" data-report-click="{&quot;spm&quot;:&quot;3001.10436&quot;,&quot;extra&quot;:{&quot;index&quot;:37,&quot;runIdx&quot;:-1}}">代码解读</button></pre> 
<hr> 
<p><strong>40、HarmonyOS应用开发者小张，正在利用DevEco Studio进 行一款复杂应用的UI界面调试。小张了解到ArkUI Inspector是DevEco Studio内置的一项强大工具， 能够显著提升UI调试效率。基于ArkUI Inspector的特性描述，下列哪些描述是正确的（不确定）</strong></p> 
<p>​ <code style="user-select: auto;">A、UI快照管理：支持导出应用的UI界面为快照图片，并允许这些快照被导入回ArkUI Inspector中，便于离线分析或分享讨论UI设计方案</code></p> 
<p>​ <code style="user-select: auto;">B、性能监控：提供详细的UI渲染性能指标，帮助开发者识别布局瓶颈和渲染效率问题，从而优化应用性能</code></p> 
<p>​ <code style="user-select: auto;">C、UI效果查看：开发者能够查看连接真机上运行的应用程序的UI显示效果，页面组件树结构，以及选中组件的属性信息</code></p> 
<p>​ <code style="user-select: auto;">D、交互式组件选择：用户既可以在组件树视图中选择组件，使UI界面上对应组件高亮显示并展示其属性详情；也可以直接在UI布局显示界面上点击选择组件</code></p> 
<hr> 
<p>41、以下关于Localstorage的说法正确有哪些？</p> 
<p>​ <code style="user-select: auto;">B、被@Component装饰的组件最多可以访问一个LocalStorage实例和AppStorage，未被@Entry装饰的组件不可被独立分配LocalStorage实例，只能接受父组件的LocalStorage实例。</code></p> 
<p>​ <code style="user-select: auto;">C、组件树的根节点，即被@Entry装饰的@Component，可以被分配一个LocalStorage实例， 此组件的所有子组件实例将自动获得对该LocalStorage实例的访问权限。</code></p> 
<p>​ <code style="user-select: auto;">D、应用程序可以创建多个LocalStorage实例，LocalStorage实例可以在页面内共享，也可以通过GetShared接口，获取在UIAbility里创建的GetShared，实现跨页面、UIAbility内共享 。</code></p> 
<hr> 
<p>42、在基于Stage模型开发的应用项目代码下，每个模块都存在一个module.json5配置文件，用于配置模块的基本信息，以下module.json5配置文件正确的是</p> 
<pre data-index="38" class="set-code-show prettyprint" style="user-select: auto;"><code class="prism language-typescript has-numbering" onclick="mdcp.copyCode(event)" style="position: unset; user-select: auto;"><span class="token comment">//	A	</span>
<span class="token punctuation">{<!-- --></span>
	<span class="token string">"module"</span><span class="token operator">:</span> <span class="token punctuation">{<!-- --></span>
		<span class="token string">"name"</span><span class="token operator">:</span> <span class="token string">"bName"</span><span class="token punctuation">,</span>
		<span class="token string">"type"</span><span class="token operator">:</span><span class="token string">" shared"</span><span class="token punctuation">,</span>
		<span class="token string">"deviceTypes"</span><span class="token operator">:</span> <span class="token punctuation">[</span>
			<span class="token string">"default"</span><span class="token punctuation">,</span>
			<span class="token string">"tablet"</span>
		<span class="token punctuation">]</span><span class="token punctuation">,</span>
		<span class="token string">"deliveryWithInstall"</span><span class="token operator">:</span> <span class="token boolean">true</span><span class="token punctuation">,</span>
		<span class="token string">"pages"</span><span class="token operator">:</span> <span class="token string">"$profile:main_pages"</span>
    <span class="token punctuation">}</span>
<span class="token punctuation">}</span>
<div class="hljs-button {2} add_def" data-title="复制"></div></code><ul class="pre-numbering" style="opacity: 0.999931;"><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li><li style="color: rgb(153, 153, 153);">3</li><li style="color: rgb(153, 153, 153);">4</li><li style="color: rgb(153, 153, 153);">5</li><li style="color: rgb(153, 153, 153);">6</li><li style="color: rgb(153, 153, 153);">7</li><li style="color: rgb(153, 153, 153);">8</li><li style="color: rgb(153, 153, 153);">9</li><li style="color: rgb(153, 153, 153);">10</li><li style="color: rgb(153, 153, 153);">11</li><li style="color: rgb(153, 153, 153);">12</li><li style="color: rgb(153, 153, 153);">13</li></ul><button class="btn-code-notes mdeditor" data-report-click="{&quot;spm&quot;:&quot;3001.10436&quot;,&quot;extra&quot;:{&quot;index&quot;:38,&quot;runIdx&quot;:-1}}">代码解读</button></pre> 
<pre data-index="39" class="prettyprint set-code-show" style="user-select: auto;"><code class="prism language-typescript has-numbering" onclick="mdcp.copyCode(event)" style="position: unset; user-select: auto;"><span class="token comment">//	D</span>
<span class="token punctuation">{<!-- --></span>
	<span class="token string">"module"</span><span class="token operator">:</span> <span class="token punctuation">{<!-- --></span>
		<span class="token string">"name"</span><span class="token operator">:</span> <span class="token string">"application"</span><span class="token punctuation">,</span>
		<span class="token string">"type"</span><span class="token operator">:</span> <span class="token string">"feature"</span><span class="token punctuation">,</span>
		<span class="token string">"description"</span><span class="token operator">:</span> <span class="token string">"$string:module_desc"</span><span class="token punctuation">,</span>
		<span class="token string">"mainElement"</span><span class="token operator">:</span> <span class="token string">"ApplicationAbility"</span><span class="token punctuation">,</span>
		<span class="token string">"deviceTypes"</span><span class="token operator">:</span> <span class="token punctuation">[</span>
			<span class="token string">"default"</span><span class="token punctuation">,</span>
			<span class="token string">"tablet"</span>
		<span class="token punctuation">]</span><span class="token punctuation">,</span>
		<span class="token string">"deliverywithInstall"</span><span class="token operator">:</span> <span class="token boolean">true</span><span class="token punctuation">,</span>
		<span class="token string">"installationFree"</span><span class="token operator">:</span> <span class="token boolean">false</span><span class="token punctuation">,</span>
		<span class="token string">"pages"</span><span class="token operator">:</span> <span class="token string">"$profile:main_pages"</span><span class="token punctuation">,</span>
		<span class="token string">"abilities"</span><span class="token operator">:</span> <span class="token punctuation">[</span>
            <span class="token punctuation">{<!-- --></span>
				<span class="token string">"name"</span><span class="token operator">:</span> <span class="token string">"ApplicationAbility"</span><span class="token punctuation">,</span>
				<span class="token string">"srcEntry"</span><span class="token operator">:</span> <span class="token string">"./ets/applicationability/ApplicationAbility.ets"</span><span class="token punctuation">,</span> 
				<span class="token string">"description"</span><span class="token operator">:</span> <span class="token string">"$string:ApplicationAbility_desc"</span><span class="token punctuation">,</span>
				<span class="token string">"icon"</span><span class="token operator">:</span> <span class="token string">"$media:icon"</span><span class="token punctuation">,</span>
				<span class="token string">"label"</span><span class="token operator">:</span> <span class="token string">"$string:ApplicationAbility_label"</span><span class="token punctuation">,</span>
				<span class="token string">"startwindowIcon"</span><span class="token operator">:</span> <span class="token string">"$media:startIcon"</span><span class="token punctuation">,</span>
				<span class="token string">"startWindowBackground"</span><span class="token operator">:</span> <span class="token string">"$color:start_window_background"</span><span class="token punctuation">,</span>
				<span class="token string">"exported"</span><span class="token operator">:</span> <span class="token boolean">true</span>
			<span class="token punctuation">}</span>
		<span class="token punctuation">]</span>
    <span class="token punctuation">}</span>
<span class="token punctuation">}</span>
<div class="hljs-button {2} add_def" data-title="复制"></div></code><ul class="pre-numbering" style="opacity: 0.999931;"><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li><li style="color: rgb(153, 153, 153);">3</li><li style="color: rgb(153, 153, 153);">4</li><li style="color: rgb(153, 153, 153);">5</li><li style="color: rgb(153, 153, 153);">6</li><li style="color: rgb(153, 153, 153);">7</li><li style="color: rgb(153, 153, 153);">8</li><li style="color: rgb(153, 153, 153);">9</li><li style="color: rgb(153, 153, 153);">10</li><li style="color: rgb(153, 153, 153);">11</li><li style="color: rgb(153, 153, 153);">12</li><li style="color: rgb(153, 153, 153);">13</li><li style="color: rgb(153, 153, 153);">14</li><li style="color: rgb(153, 153, 153);">15</li><li style="color: rgb(153, 153, 153);">16</li><li style="color: rgb(153, 153, 153);">17</li><li style="color: rgb(153, 153, 153);">18</li><li style="color: rgb(153, 153, 153);">19</li><li style="color: rgb(153, 153, 153);">20</li><li style="color: rgb(153, 153, 153);">21</li><li style="color: rgb(153, 153, 153);">22</li><li style="color: rgb(153, 153, 153);">23</li><li style="color: rgb(153, 153, 153);">24</li><li style="color: rgb(153, 153, 153);">25</li><li style="color: rgb(153, 153, 153);">26</li><li style="color: rgb(153, 153, 153);">27</li><li style="color: rgb(153, 153, 153);">28</li></ul><button class="btn-code-notes mdeditor" data-report-click="{&quot;spm&quot;:&quot;3001.10436&quot;,&quot;extra&quot;:{&quot;index&quot;:39,&quot;runIdx&quot;:-1}}">代码解读</button></pre> 
<hr> 
<p>43、hiAppEvent提供的Watcher接口，订阅到的系统事件，哪些包含HiLog日志？</p> 
<p>​ <code style="user-select: auto;">C、卡死事件</code></p> 
<p>​ <code style="user-select: auto;">D、崩溃事件</code></p> 
<hr> 
<p>44、当前动态import支持导入的模块类型有哪些？</p> 
<p>​ <code style="user-select: auto;">A、动态import支持加载OHPM模块</code></p> 
<p>​ <code style="user-select: auto;">B、动态import支持加载本地HAR模块</code></p> 
<p>​ <code style="user-select: auto;">C、动态import支持加载HSP模块</code></p> 
<p>​ <code style="user-select: auto;">D、动态import支持加载远程HAR模块</code></p> 
<hr> 
<p>45、ArkTS是鸿蒙生态的应用开发语言。以下哪些选项是ArkTS的设计理念。</p> 
<p>​ <code style="user-select: auto;">A、通过规范强化静态检查和分析，减少运行时的类型检查，从而降低了运行时负载，提升执行性能。</code></p> 
<p>​ <code style="user-select: auto;">B、通过规范强化静态检查和分析， 使得许多错误在编译时可以被检测出来，降低代码运行错误的风险。</code></p> 
<p>​ <code style="user-select: auto;">D、ArkTS保留了TS大部分的语法特性，帮助开发者更容易上手ArkTS。</code></p> 
<hr> 
<p>46、以下代码片段哪几处违反了ArkTS语法规范。</p> 
<pre data-index="40" class="set-code-show prettyprint" style="user-select: auto;"><code class="prism language-typescript has-numbering" onclick="mdcp.copyCode(event)" style="position: unset; user-select: auto;"><span class="token keyword">function</span> <span class="token function">foo</span><span class="token punctuation">(</span>value<span class="token operator">:</span> <span class="token builtin">number</span><span class="token punctuation">)</span> <span class="token punctuation">{<!-- --></span>
  <span class="token keyword">return</span> value<span class="token punctuation">;</span>
<span class="token punctuation">}</span>

<span class="token function">foo</span><span class="token punctuation">(</span><span class="token string">''</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
<span class="token function">foo</span><span class="token punctuation">(</span><span class="token number">0</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
<span class="token function">foo</span><span class="token punctuation">(</span><span class="token keyword">undefined</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
<span class="token function">foo</span><span class="token punctuation">(</span><span class="token keyword">null</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
<div class="hljs-button {2} add_def" data-title="复制"></div></code><ul class="pre-numbering" style="opacity: 0.999931;"><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li><li style="color: rgb(153, 153, 153);">3</li><li style="color: rgb(153, 153, 153);">4</li><li style="color: rgb(153, 153, 153);">5</li><li style="color: rgb(153, 153, 153);">6</li><li style="color: rgb(153, 153, 153);">7</li><li style="color: rgb(153, 153, 153);">8</li></ul><button class="btn-code-notes mdeditor" data-report-click="{&quot;spm&quot;:&quot;3001.10436&quot;,&quot;extra&quot;:{&quot;index&quot;:40,&quot;runIdx&quot;:-1}}">代码解读</button></pre> 
<p>​ <code style="user-select: auto;">A. foo(null);</code></p> 
<p>​ <code style="user-select: auto;">B. foo(undefined);</code></p> 
<p>​ <code style="user-select: auto;">C. foo(");</code></p> 
<hr> 
<p><strong>47、以下哪些是可以在Navigation中使用pushPathByName接口传递的params的参数类型（不确定）</strong></p> 
<p>​ <code style="user-select: auto;">A、arrayBuffer</code></p> 
<p>​ <code style="user-select: auto;">C、record&lt;string,string&gt;</code></p> 
<p>​ <code style="user-select: auto;">D、string</code></p> 
<hr> 
<p><strong>48、HSP支持导出ArkUl组件、接口，供应用内的其他HAP/HSP引用，下面正确的是（不确定）</strong></p> 
<p>​ <code style="user-select: auto;">A、导出ArkUI组件</code></p> 
<p>​ <code style="user-select: auto;">B、导出native方法，在HSP中也可以包含C++编写的so。对于so中的native方法，HSP通过间接的方式导出，以导出liblibrary.so的乘法接口multi为例</code></p> 
<p>​ <code style="user-select: auto;">C、导出ts类和方法</code></p> 
<hr> 
<p>49、下面关于方舟字节码文件格式描述正确的是</p> 
<p>​ <code style="user-select: auto;">C、方舟字节码文件是ArkTS/TS/JS编译后的二进制产物</code></p> 
<p>​ <code style="user-select: auto;">D、方舟字节码文件中数据类型uint16_t表示16-bit无符号整数，采用小端字节序</code></p> 
<hr> 
<p>50、在开发HarmonyOS应用的多元化测试环境中，DevEco Studio引入了本地模拟器(Local Emulator)作为重要工具，旨在帮助开发者在个人开发机器上高效模拟HarmonyOS环境，进行应用或服务的快速运行与细致调试。请根据本地模拟器的实际应用场景与系统要求，选出所有正确的描述选项</p> 
<p>​ <code style="user-select: auto;">B、为了保证流畅的运行和调试体验，本地模拟器推荐macOS系统版本至少为12.5以上。</code></p> 
<p>​ <code style="user-select: auto;">C、DevEco Studio的本地模拟器允许开发者在个人电脑上模拟HarmonyOS环境，便于应用或服务的运行与调试。</code></p> 
<p>​ <code style="user-select: auto;">D、mac计算机配置方面，为了确保本地模拟器的稳定运行，推荐至少配备8GB RAM。</code></p> 
<hr> 
<p>51、下面关于混淆的描述正确的是</p> 
<p>​ <code style="user-select: auto;">A、支持顶层作用域名称、 属性名称、文件名称等多种混淆功能</code></p> 
<p>​ <code style="user-select: auto;">B、修改应用混淆配置，新配置需要重新全量编译应用才能生效</code></p> 
<p>​ <code style="user-select: auto;">C、在工程build-profile.json5中的obfuscation.ruleOptions.files字段中配置该工程的混淆配置，该配置仅在编译该工程时生 效。</code></p> 
<p>​ <code style="user-select: auto;">D、可以在HAR模块工程的build-profile.json5中的obfuscation.consumerFiles字段中配置导出的混淆配置，该配置仅在编译 依赖该HAR的模块时生效。</code></p> 
<hr> 
<p>52、如下哪些方式可实现图片动态播放？</p> 
<pre data-index="41" class="set-code-show prettyprint" style="user-select: auto;"><code class="prism language-typescript has-numbering" onclick="mdcp.copyCode(event)" style="position: unset; user-select: auto;"><span class="token comment">//	不选带有下面这个的，其余3个全选</span>
  <span class="token keyword">private</span> <span class="token keyword">async</span> <span class="token function">getPixelMaps</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{<!-- --></span>   
    <span class="token comment">//	====================	怎么没有定义Mypixelmaps？？？？？？？？</span>
    Mypixelmaps<span class="token punctuation">.</span><span class="token function">push</span><span class="token punctuation">(</span><span class="token keyword">await</span> <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">getPixmapFromMedia</span><span class="token punctuation">(</span><span class="token function">$r</span><span class="token punctuation">(</span><span class="token string">'app.media.icon'</span><span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token punctuation">)</span> <span class="token comment">//对应资源图片名后缀为png</span>
    <span class="token keyword">return</span> Mypixelmaps<span class="token punctuation">;</span>
  <span class="token punctuation">}</span>
<div class="hljs-button {2} add_def" data-title="复制"></div></code><ul class="pre-numbering" style="opacity: 0.999931;"><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li><li style="color: rgb(153, 153, 153);">3</li><li style="color: rgb(153, 153, 153);">4</li><li style="color: rgb(153, 153, 153);">5</li><li style="color: rgb(153, 153, 153);">6</li></ul><button class="btn-code-notes mdeditor" data-report-click="{&quot;spm&quot;:&quot;3001.10436&quot;,&quot;extra&quot;:{&quot;index&quot;:41,&quot;runIdx&quot;:-1}}">代码解读</button></pre> 
<hr> 
<p>53、下面关于混淆规则描述正确的是</p> 
<p>​ <code style="user-select: auto;">B、-keep-file-name [,identifirs,...]：指定要保留的文件/文件夹的名称</code></p> 
<p>​ <code style="user-select: auto;">D、-print-namecache filepath：将名称缓存保存 到指定的文件路径。</code></p> 
<hr> 
<p>54、下面关于Node-API数据类型描述正确的是</p> 
<p>​ A、<code style="user-select: auto;">napi_status：是一个枚举数据类型，表示Node-API接口返回的状态信息</code></p> 
<p>​ C、<code style="user-select: auto;">napi_env：用于表示Node-API执行时的上下文</code></p> 
<hr> 
<p><strong>55、以下数据类型中，哪些是Sendable数据 。（不确定）</strong></p> 
<pre data-index="42" class="set-code-show prettyprint" style="user-select: auto;"><code class="prism language-typescript has-numbering" onclick="mdcp.copyCode(event)" style="position: unset; user-select: auto;"><span class="token keyword">import</span> <span class="token punctuation">{<!-- --></span> lang <span class="token punctuation">}</span> <span class="token keyword">from</span> <span class="token string">'@kit.ArkTS'</span><span class="token punctuation">;</span>

<span class="token keyword">class</span> <span class="token class-name"><span class="token constant">C</span></span> <span class="token punctuation">{<!-- --></span><span class="token punctuation">}</span>

<span class="token keyword">interface</span> <span class="token class-name"><span class="token constant">I</span></span> <span class="token keyword">extends</span> <span class="token class-name">lang</span><span class="token punctuation">.</span>ISendable <span class="token punctuation">{<!-- --></span><span class="token punctuation">}</span>
<div class="hljs-button {2} add_def" data-title="复制"></div></code><ul class="pre-numbering" style="opacity: 0.999931;"><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li><li style="color: rgb(153, 153, 153);">3</li><li style="color: rgb(153, 153, 153);">4</li><li style="color: rgb(153, 153, 153);">5</li></ul><button class="btn-code-notes mdeditor" data-report-click="{&quot;spm&quot;:&quot;3001.10436&quot;,&quot;extra&quot;:{&quot;index&quot;:42,&quot;runIdx&quot;:-1}}">代码解读</button></pre> 
<p>​ <code style="user-select: auto;">A、interface I</code></p> 
<p>​ <code style="user-select: auto;">C、string</code></p> 
<p>​ <code style="user-select: auto;">D、number</code></p> 
<hr> 
<p>56、处于安全因素考虑，ArkTS不支持以下哪些语法。</p> 
<p>​ <code style="user-select: auto;">A、with()</code></p> 
<p>​ <code style="user-select: auto;">B、new Function('a', 'b', 'return a + b') </code></p> 
<p>​ <code style="user-select: auto;">C、eval()</code></p> 
<hr> 
<p>57、在ArkTS中，以下哪些声明类的方式是正确的。</p> 
<pre data-index="43" class="set-code-show prettyprint" style="user-select: auto;"><code class="prism language-typescript has-numbering" onclick="mdcp.copyCode(event)" style="position: unset; user-select: auto;"><span class="token keyword">class</span> <span class="token class-name"><span class="token constant">C1</span></span> <span class="token punctuation">{<!-- --></span>
	value<span class="token operator">:</span> <span class="token builtin">number</span> <span class="token operator">=</span> <span class="token number">0</span><span class="token punctuation">;</span>
<span class="token punctuation">}</span>

<span class="token keyword">class</span> <span class="token class-name"><span class="token constant">C2</span></span> <span class="token punctuation">{<!-- --></span>
	value<span class="token operator">:</span> <span class="token builtin">number</span><span class="token punctuation">;</span>
    
	<span class="token keyword">constructor</span><span class="token punctuation">(</span>value<span class="token operator">:</span> <span class="token builtin">number</span><span class="token punctuation">)</span> <span class="token punctuation">{<!-- --></span>
		<span class="token keyword">this</span><span class="token punctuation">.</span>value <span class="token operator">=</span> value<span class="token punctuation">;</span>
	<span class="token punctuation">}</span>
<span class="token punctuation">}</span>
<div class="hljs-button {2} add_def" data-title="复制"></div></code><ul class="pre-numbering" style="opacity: 0.999931;"><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li><li style="color: rgb(153, 153, 153);">3</li><li style="color: rgb(153, 153, 153);">4</li><li style="color: rgb(153, 153, 153);">5</li><li style="color: rgb(153, 153, 153);">6</li><li style="color: rgb(153, 153, 153);">7</li><li style="color: rgb(153, 153, 153);">8</li><li style="color: rgb(153, 153, 153);">9</li><li style="color: rgb(153, 153, 153);">10</li><li style="color: rgb(153, 153, 153);">11</li></ul><button class="btn-code-notes mdeditor" data-report-click="{&quot;spm&quot;:&quot;3001.10436&quot;,&quot;extra&quot;:{&quot;index&quot;:43,&quot;runIdx&quot;:-1}}">代码解读</button></pre> 
<hr> 
<p>58、小华正在使用DevEco studio开发一个复杂的HarmonyOS应用，他意识到代码中有一段逻辑被多次重复使用，为了优化代码结构和减少冗余，他决定将这段逻辑提取出来作为一个独立的方法。同时，他也注意到有些常用的硬编码值可以抽象为常量，以提高代码的可读性和维护性。小华希望利用DevEco Studio的代码重构功能来高效完成这些任务，通过以下哪些操作来实现代码重构，以提升编码效率</p> 
<p>​ <code style="user-select: auto;">A、为了简化复杂类型的多次书写，小华可以选择特定类型字面量，通过“Refactor”菜单下的“Extract Type Alias”来创建类型别名</code></p> 
<p>​ <code style="user-select: auto;">B、若需要将局部变量提升为类成员变量，小华只需简单选中变量名，右键选择“Refactor” -&gt; “Promote Local Variable”</code></p> 
<p>​ <code style="user-select: auto;">C、选中需要重构的代码块，右键点击选择“Refactor”，然后选择“Extract Method”来将代码块转换为一个新的函数/方法</code></p> 
<p>​ <code style="user-select: auto;">D、如果小华识别到一 组相关的对象字面值可以抽象为一个接口，他可以直接通过“Refactor”菜单中的“Extract Interface”功能实现</code></p> 
<hr> 
<p>59、哪些是持续集成最佳实践？</p> 
<p>​ A、<code style="user-select: auto;">自动化构建：确保构建过程是完全自动化的，减少人为错误。</code></p> 
<p>​ C、<code style="user-select: auto;">全面的测试套件：包括单元测试、集成测试、功能测试等，以提高代码质量。</code></p> 
<p>​ E、<code style="user-select: auto;">频繁提交代码：鼓励开发人员经常提交小的代码更改， 以便更快地发现问题。</code></p> 
<p>​ F、<code style="user-select: auto;">代码审查：在集成前进行代码审查，及时发现潜在问题。</code></p> 
<p>​ G、<code style="user-select: auto;">快速反馈机制：让开发人员能迅速得知集成结果和测试状态。</code></p> 
<hr> 
<p><strong>60、下面代码符合ArkTS编程规范的是（不确定，把所有选项列出）</strong></p> 
<pre data-index="44" class="set-code-show prettyprint" style="user-select: auto;"><code class="prism language-typescript has-numbering" onclick="mdcp.copyCode(event)" style="position: unset; user-select: auto;"><span class="token keyword">let</span> maxCount <span class="token operator">=</span> <span class="token number">10</span><span class="token punctuation">;</span>
<span class="token keyword">let</span> isCompleted <span class="token operator">=</span> <span class="token boolean">false</span><span class="token punctuation">;</span>
<span class="token keyword">let</span> pointX <span class="token operator">=</span> <span class="token number">0</span><span class="token punctuation">;</span>
<span class="token keyword">let</span> pointY <span class="token operator">=</span> <span class="token number">0</span><span class="token punctuation">;</span>
<div class="hljs-button {2} add_def" data-title="复制"></div></code><ul class="pre-numbering" style="opacity: 0.999931;"><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li><li style="color: rgb(153, 153, 153);">3</li><li style="color: rgb(153, 153, 153);">4</li></ul><button class="btn-code-notes mdeditor" data-report-click="{&quot;spm&quot;:&quot;3001.10436&quot;,&quot;extra&quot;:{&quot;index&quot;:44,&quot;runIdx&quot;:-1}}">代码解读</button></pre> 
<pre data-index="45" class="set-code-show prettyprint" style="user-select: auto;"><code class="prism language-typescript has-numbering" onclick="mdcp.copyCode(event)" style="position: unset; user-select: auto;"><span class="token comment">//	没有定义【condition】</span>
<span class="token keyword">if</span> <span class="token punctuation">(</span>condition<span class="token punctuation">)</span> <span class="token punctuation">{<!-- --></span>
	<span class="token builtin">console</span><span class="token punctuation">.</span><span class="token number">1</span><span class="token function">og</span><span class="token punctuation">(</span><span class="token string">'success'</span><span class="token punctuation">)</span><span class="token punctuation">;</span> 
<span class="token punctuation">}</span>
<div class="hljs-button {2} add_def" data-title="复制"></div></code><ul class="pre-numbering" style="opacity: 0.999931;"><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li><li style="color: rgb(153, 153, 153);">3</li><li style="color: rgb(153, 153, 153);">4</li></ul><button class="btn-code-notes mdeditor" data-report-click="{&quot;spm&quot;:&quot;3001.10436&quot;,&quot;extra&quot;:{&quot;index&quot;:45,&quot;runIdx&quot;:-1}}">代码解读</button></pre> 
<p>​ <code style="user-select: auto;">C、C</code></p> 
<p>​ <code style="user-select: auto;">D、D</code></p> 
<hr> 
<p>61、下面关于ArkTS中export用法，正确的是</p> 
<p>​ <code style="user-select: auto;">A、export { export1 as alias1 } from "ets file name";</code></p> 
<p>​ <code style="user-select: auto;">B、export * as name from "ets file name"</code></p> 
<p>​ <code style="user-select: auto;">C、export * from "ets file name"</code></p> 
<p>​ <code style="user-select: auto;">D、export { export1 } from "ets file name";</code></p> 
<hr> 
<p><strong>62、在使用DevEco Studio进行HarmonyOS应用开发和调试过程中，开发者小张遇到应用运行时意外终止的情况，他需要快速定位并解决导致应用崩溃的问题。以下哪些做法可以帮助小张有效分析和处理这些问题（不确定）</strong></p> 
<p>​ <code style="user-select: auto;">A、查看DevEco Studio log工具栏输出的错误日志，根据日志提示分析应用崩溃的具体原因及代码位置</code></p> 
<p>​ <code style="user-select: auto;">B、若遇到App运行卡顿或系统整体无响（(App Freeze, System Freeze）的情况，可以通过性能分析工具中的Frame Insight和Allocation Insight功能，分析应用的资源消耗情况，寻找可能的瓶颈</code></p> 
<hr> 
<p>63、为了加快构建速度，提高开发效率，可以如何调整hvigor配置，从而优化构建速度</p> 
<p>​ <code style="user-select: auto;">A、启用hvigor的incremental，在增量场景下检查任务是否可以跳过</code></p> 
<p>​ <code style="user-select: auto;">B、启动hvigor的daemon模式，在增量场景下复用缓存</code></p> 
<p>​ <code style="user-select: auto;">D、启用hvigor的parallel，在增量场景下进行并行编译处理</code></p> 
<hr> 
<p>64、项目组开发的HarmonyOS应用工程，为了保护hap代码资产，如何在DevEco Studio中启用混淆的功能，并设置相应的混淆规则？</p> 
<p>​ <code style="user-select: auto;">A、在混淆规则配置文件obfuscation-rules.txt中进行混淆规则的配置</code></p> 
<p>​ <code style="user-select: auto;">B、release模式下将buildOption/arkOptions/ruleOptions/enable设置为true</code></p> 
<hr> 
<p>65、Navigation组件是路由导航的根视图容器，一般作为Page页面的根容器使用，以下关于Navigation组件说法正确的是</p> 
<p>​ <code style="user-select: auto;">A、Navigation的子页面可以来自不同的Module</code></p> 
<p>​ <code style="user-select: auto;">B、Navigation的页面显示模式有单页面、分栏和自适应三种显示模式</code></p> 
<hr> 
<p><strong>66、开发者小李正在使用DevEco Studio开发一款面向HarmonyOS的应用，该应用需要在多种设备上表现出一致的稳定性和优秀的用户体验。为了确保高质量的发布，小李意识到需要实施一套全面的测试策略，覆盖代码的自动化测试和手动测试，还需要衡量代码的测试覆盖率，以确定测试的充分性。在DevEco Studio的测试框架下，以下描述中，哪些是正确的（不确定）</strong></p> 
<pre data-index="46" class="set-code-show prettyprint" style="user-select: auto;"><code class="has-numbering" onclick="mdcp.copyCode(event)" style="position: unset; user-select: auto;">不选这一项，其余全选：【Instrument Test：测试用例存储于项目的ohosTest目录，要求在HarmonyOS设备或模拟器上执行，兼容ArkTS与JS语言编写。】
<div class="hljs-button {2} add_def" data-title="复制"></div></code><ul class="pre-numbering" style="opacity: 0.999931;"><li style="color: rgb(153, 153, 153);">1</li></ul><button class="btn-code-notes mdeditor" data-report-click="{&quot;spm&quot;:&quot;3001.10436&quot;,&quot;extra&quot;:{&quot;index&quot;:46,&quot;runIdx&quot;:-1}}">代码解读</button></pre> 
<hr>
                